@npmcli/template-oss 2.7.0 → 2.8.1

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.
@@ -0,0 +1,31 @@
1
+ # This file is automatically added by @npmcli/template-oss. Do not edit.
2
+
3
+ name: "Post Dependabot Actions"
4
+ on: pull_request
5
+
6
+ jobs:
7
+ Install:
8
+ runs-on: ubuntu-latest
9
+ if: ${{ github.actor == 'dependabot[bot]' }}
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: actions/setup-node@v2
13
+ with:
14
+ node-version: '16'
15
+ - name: Dependabot metadata
16
+ id: metadata
17
+ uses: dependabot/fetch-metadata@v1.1.1
18
+ with:
19
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
20
+ - name: npm install and commit
21
+ if: ${{contains(steps.metadata.outputs.dependency-names, '@npmcli/template-oss')}}
22
+ env:
23
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24
+ run: |
25
+ git config --local user.email "ops+npm-cli@npmjs.com"
26
+ git config --local user.name "npm cli ops bot"
27
+ gh pr checkout ${{ github.event.pull_request.number }}
28
+ npm install
29
+ git add .
30
+ git commit -am "chore: postinstall for dependabot template-oss PR"
31
+ git push
@@ -22,6 +22,7 @@ const repoFiles = {
22
22
  '.github/dependabot.yml': './dependabot.yml',
23
23
  '.github/workflows/audit.yml': './audit.yml',
24
24
  '.github/workflows/codeql-analysis.yml': './codeql-analysis.yml',
25
+ '.github/workflows/post-dependabot.yml': './post-dependabot.yml',
25
26
  '.github/workflows/pull-request.yml': './pull-request.yml',
26
27
  '.github/workflows/release-please.yml': './release-please.yml',
27
28
  }
@@ -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.0",
3
+ "version": "2.8.1",
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
  },