diff options
author | Luke Karrys <luke@lukekarrys.com> | 2022-03-29 01:55:02 +0300 |
---|---|---|
committer | Luke Karrys <luke@lukekarrys.com> | 2022-03-30 00:51:53 +0300 |
commit | aac01b89caf6336a2eb34d696296303cdadd5c08 (patch) | |
tree | c322cc32001ab169bd2e9e335ba7e4a45f31b4aa /workspaces/libnpmversion | |
parent | b48a2bfde3745fa21ea4fc18d6f562fd82f82545 (diff) |
deps: @npmcli/template-oss@3.2.1
- `no-shadow` was disabled for the cli and arborist due to the amount
of changes required. These should be fixed later.
- Manually updated linting in the cli root to match closer to what
template-oss does
- Included docs to be managed with template-oss. This required adding
an empty test for now, with the plan to add real tests later.
Diffstat (limited to 'workspaces/libnpmversion')
-rw-r--r-- | workspaces/libnpmversion/.eslintrc.js | 3 | ||||
-rw-r--r-- | workspaces/libnpmversion/.gitignore | 22 | ||||
-rw-r--r-- | workspaces/libnpmversion/.npmrc | 3 | ||||
-rw-r--r-- | workspaces/libnpmversion/SECURITY.md | 3 | ||||
-rw-r--r-- | workspaces/libnpmversion/package.json | 20 | ||||
-rw-r--r-- | workspaces/libnpmversion/test/version.js | 4 |
6 files changed, 25 insertions, 30 deletions
diff --git a/workspaces/libnpmversion/.eslintrc.js b/workspaces/libnpmversion/.eslintrc.js index 022767bc3..0e8ad0071 100644 --- a/workspaces/libnpmversion/.eslintrc.js +++ b/workspaces/libnpmversion/.eslintrc.js @@ -1,4 +1,4 @@ -// This file is automatically added by @npmcli/template-oss. Do not edit. +/* This file is automatically added by @npmcli/template-oss. Do not edit. */ const { readdirSync: readdir } = require('fs') @@ -7,6 +7,7 @@ const localConfigs = readdir(__dirname) .map((file) => `./${file}`) module.exports = { + root: true, extends: [ '@npmcli', ...localConfigs, diff --git a/workspaces/libnpmversion/.gitignore b/workspaces/libnpmversion/.gitignore index 6ed44c72b..617e50ca0 100644 --- a/workspaces/libnpmversion/.gitignore +++ b/workspaces/libnpmversion/.gitignore @@ -4,20 +4,18 @@ /* # keep these -!/.commitlintrc.js -!/.npmrc -!/.eslintrc* -!/.github +!/.eslintrc.local.* !**/.gitignore -!/package.json -!/docs -!/bin -!/lib +!/docs/ +!/tap-snapshots/ +!/test/ !/map.js -!/tap-snapshots -!/test -!/scripts +!/scripts/ !/README* !/LICENSE* -!/SECURITY* !/CHANGELOG* +!/.eslintrc.js +!/.gitignore +!/bin/ +!/lib/ +!/package.json diff --git a/workspaces/libnpmversion/.npmrc b/workspaces/libnpmversion/.npmrc deleted file mode 100644 index 878b7ddef..000000000 --- a/workspaces/libnpmversion/.npmrc +++ /dev/null @@ -1,3 +0,0 @@ -;This file is automatically added by @npmcli/template-oss. Do not edit. - -package-lock=false diff --git a/workspaces/libnpmversion/SECURITY.md b/workspaces/libnpmversion/SECURITY.md deleted file mode 100644 index a93106d0c..000000000 --- a/workspaces/libnpmversion/SECURITY.md +++ /dev/null @@ -1,3 +0,0 @@ -<!-- This file is automatically added by @npmcli/template-oss. Do not edit. --> - -Please send vulnerability reports through [hackerone](https://hackerone.com/github). diff --git a/workspaces/libnpmversion/package.json b/workspaces/libnpmversion/package.json index ddb56c1cf..980a86bc0 100644 --- a/workspaces/libnpmversion/package.json +++ b/workspaces/libnpmversion/package.json @@ -3,35 +3,36 @@ "version": "3.0.1", "main": "lib/index.js", "files": [ - "bin", - "lib" + "bin/", + "lib/" ], "description": "library to do the things that 'npm version' does", "repository": { "type": "git", - "url": "https://github.com/npm/cli", + "url": "https://github.com/npm/cli.git", "directory": "workspaces/libnpmversion" }, "author": "GitHub Inc.", "license": "ISC", "scripts": { - "lint": "eslint '**/*.js'", + "lint": "eslint \"**/*.js\"", "test": "tap", "posttest": "npm run lint", "snap": "tap", "preversion": "npm test", "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags", - "postlint": "npm-template-check", + "postlint": "template-oss-check", "lintfix": "npm run lint -- --fix", - "template-copy": "npm-template-copy --force" + "template-oss-apply": "template-oss-apply --force" }, "tap": { "coverage-map": "map.js", "check-coverage": true }, "devDependencies": { - "@npmcli/template-oss": "^2.4.2", + "@npmcli/eslint-config": "^3.0.1", + "@npmcli/template-oss": "3.2.1", "require-inject": "^1.4.4", "tap": "^15" }, @@ -44,9 +45,10 @@ "stringify-package": "^1.0.1" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" }, "templateOSS": { - "version": "2.9.2" + "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", + "version": "3.2.1" } } diff --git a/workspaces/libnpmversion/test/version.js b/workspaces/libnpmversion/test/version.js index 19cf7ea0a..2cbd615c5 100644 --- a/workspaces/libnpmversion/test/version.js +++ b/workspaces/libnpmversion/test/version.js @@ -11,8 +11,8 @@ const gitMock = { const version = requireInject('../lib/version.js', { '../lib/enforce-clean.js': async () => true, '../lib/write-json.js': async (file, data) => actionLog.push(['write-json', file, data]), - '../lib/commit.js': async (version, opts) => actionLog.push(['commit', version, opts]), - '../lib/tag.js': async (version, opts) => actionLog.push(['tag', version, opts]), + '../lib/commit.js': async (v, opts) => actionLog.push(['commit', v, opts]), + '../lib/tag.js': async (v, opts) => actionLog.push(['tag', v, opts]), '../lib/retrieve-tag.js': async (opts) => { if (/\bnot-git$/.test(opts.path)) { throw new Error('not a git dir') |