@npmcli/template-oss 2.7.1 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,6 +79,14 @@ const patchPackage = async (path, root, config) => {
79
79
  if (pkg.content.templateVersion) {
80
80
  update.templateVersion = undefined
81
81
  }
82
+ if (pkg.content.scripts && pkg.content.scripts['lint:fix']) {
83
+ // some old packages using standard had a lint:fix script
84
+ delete update.scripts['lint:fix']
85
+ }
86
+ if (pkg.content.standard) {
87
+ // remove standard configuration if it exists
88
+ update.standard = undefined
89
+ }
82
90
  }
83
91
 
84
92
  pkg.update(update)
@@ -6,6 +6,7 @@ const unwantedPackages = [
6
6
  'eslint-plugin-promise',
7
7
  'eslint-plugin-standard',
8
8
  'eslint-plugin-import',
9
+ 'standard',
9
10
  ]
10
11
 
11
12
  const hasOwn = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/template-oss",
3
- "version": "2.7.1",
3
+ "version": "2.8.0",
4
4
  "description": "templated files used in npm CLI team oss projects",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -31,8 +31,8 @@
31
31
  "author": "GitHub Inc.",
32
32
  "license": "ISC",
33
33
  "dependencies": {
34
- "@npmcli/fs": "^1.1.0",
35
- "@npmcli/map-workspaces": "^2.0.0",
34
+ "@npmcli/fs": "^1.1.1",
35
+ "@npmcli/map-workspaces": "^2.0.1",
36
36
  "@npmcli/package-json": "^1.0.1",
37
37
  "json-parse-even-better-errors": "^2.3.1",
38
38
  "which": "^2.0.2"
@@ -45,7 +45,7 @@
45
45
  "@npmcli/eslint-config": "*",
46
46
  "@npmcli/promise-spawn": "^2.0.0",
47
47
  "@npmcli/template-oss": "file:./",
48
- "eslint": "^8.8.0",
48
+ "eslint": "^8.9.0",
49
49
  "eslint-plugin-node": "^11.1.0",
50
50
  "tap": "*"
51
51
  },