Skip to content

Commit 1eea618

Browse files
committed
deps: @npmcli/template-oss@3.2.0
1 parent b48a2bf commit 1eea618

File tree

122 files changed

+2366
-4088
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2366
-4088
lines changed

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const { readdirSync: readdir } = require('fs')
2+
3+
const localConfigs = readdir(__dirname)
4+
.filter((file) => file.startsWith('.eslintrc.local.'))
5+
.map((file) => `./${file}`)
6+
7+
module.exports = {
8+
extends: [
9+
'@npmcli',
10+
...localConfigs,
11+
],
12+
}

.eslintrc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.eslintrc.local.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"rules": {
3+
"no-shadow": "off",
4+
"no-console": "error"
5+
},
6+
"overrides": [{
7+
"files": [
8+
"scripts/**",
9+
"smoke-tests/**",
10+
"bin/**",
11+
"test/**"
12+
],
13+
"rules": {
14+
"no-console": "off"
15+
}
16+
}]
17+
}

.github/workflows/ci-libnpmaccess.yml

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,53 @@
1-
name: Node Workspace CI libnpmaccess
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: CI - libnpmaccess
24

35
on:
6+
workflow_dispatch:
47
pull_request:
8+
branches:
9+
- '*'
510
paths:
611
- workspaces/libnpmaccess/**
712
push:
8-
paths:
9-
- workspaces/libnpmaccess/**
1013
branches:
11-
- release-next
14+
- main
1215
- latest
13-
workflow_dispatch:
16+
paths:
17+
- workspaces/libnpmaccess/**
18+
schedule:
19+
# "At 02:00 on Monday" https://crontab.guru/#0_2_*_*_1
20+
- cron: "0 2 * * 1"
1421

1522
jobs:
1623
lint:
1724
runs-on: ubuntu-latest
1825
steps:
19-
# Checkout the npm/cli repo
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-node@v2
26+
- uses: actions/checkout@v3
27+
- name: Setup git user
28+
run: |
29+
git config --global user.email "ops+npm-cli@npmjs.com"
30+
git config --global user.name "npm cli ops bot"
31+
- uses: actions/setup-node@v3
2232
with:
23-
node-version: '16'
24-
- run: npm i --prefer-online -g npm@latest
33+
node-version: 16.x
34+
- name: Update npm to latest
35+
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
36+
- run: npm -v
2537
- run: npm i
26-
- run: npm run lint -w workspaces/libnpmaccess
38+
- run: npm run lint -w libnpmaccess
2739

2840
test:
2941
strategy:
3042
fail-fast: false
3143
matrix:
32-
node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x]
44+
node-version:
45+
- 12.13.0
46+
- 12.x
47+
- 14.15.0
48+
- 14.x
49+
- 16.0.0
50+
- 16.x
3351
platform:
3452
- os: ubuntu-latest
3553
shell: bash
@@ -42,22 +60,31 @@ jobs:
4260
run:
4361
shell: ${{ matrix.platform.shell }}
4462
steps:
45-
- uses: actions/checkout@v2
46-
- uses: actions/setup-node@v2
63+
- uses: actions/checkout@v3
64+
- name: Setup git user
65+
run: |
66+
git config --global user.email "ops+npm-cli@npmjs.com"
67+
git config --global user.name "npm cli ops bot"
68+
- uses: actions/setup-node@v3
4769
with:
4870
node-version: ${{ matrix.node-version }}
49-
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
5071
- name: Update to workable npm (windows)
51-
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12') || startsWith(matrix.node-version, '14'))
72+
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
73+
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.'))
5274
run: |
5375
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
5476
tar xf npm-7.5.4.tgz
5577
cd package
5678
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
5779
cd ..
5880
rmdir /s /q package
59-
- name: Update npm
81+
- name: Update npm to 7
82+
# If we do test on npm 10 it needs npm7
83+
if: startsWith(matrix.node-version, '10.')
84+
run: npm i --prefer-online --no-fund --no-audit -g npm@7
85+
- name: Update npm to latest
86+
if: ${{ !startsWith(matrix.node-version, '10.') }}
6087
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
6188
- run: npm -v
6289
- run: npm i
63-
- run: npm test --ignore-scripts -w workspaces/libnpmaccess
90+
- run: npm test --ignore-scripts -w libnpmaccess

.github/workflows/ci-libnpmdiff.yml

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,53 @@
1-
name: Node Workspace CI libnpmdiff
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: CI - libnpmdiff
24

35
on:
6+
workflow_dispatch:
47
pull_request:
8+
branches:
9+
- '*'
510
paths:
611
- workspaces/libnpmdiff/**
712
push:
8-
paths:
9-
- workspaces/libnpmdiff/**
1013
branches:
11-
- release-next
14+
- main
1215
- latest
13-
workflow_dispatch:
16+
paths:
17+
- workspaces/libnpmdiff/**
18+
schedule:
19+
# "At 02:00 on Monday" https://crontab.guru/#0_2_*_*_1
20+
- cron: "0 2 * * 1"
1421

1522
jobs:
1623
lint:
1724
runs-on: ubuntu-latest
1825
steps:
19-
# Checkout the npm/cli repo
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-node@v2
26+
- uses: actions/checkout@v3
27+
- name: Setup git user
28+
run: |
29+
git config --global user.email "ops+npm-cli@npmjs.com"
30+
git config --global user.name "npm cli ops bot"
31+
- uses: actions/setup-node@v3
2232
with:
23-
node-version: '16'
24-
- run: npm i --prefer-online -g npm@latest
33+
node-version: 16.x
34+
- name: Update npm to latest
35+
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
36+
- run: npm -v
2537
- run: npm i
26-
- run: npm run lint -w workspaces/libnpmdiff
38+
- run: npm run lint -w libnpmdiff
2739

2840
test:
2941
strategy:
3042
fail-fast: false
3143
matrix:
32-
node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x]
44+
node-version:
45+
- 12.13.0
46+
- 12.x
47+
- 14.15.0
48+
- 14.x
49+
- 16.0.0
50+
- 16.x
3351
platform:
3452
- os: ubuntu-latest
3553
shell: bash
@@ -42,22 +60,31 @@ jobs:
4260
run:
4361
shell: ${{ matrix.platform.shell }}
4462
steps:
45-
- uses: actions/checkout@v2
46-
- uses: actions/setup-node@v2
63+
- uses: actions/checkout@v3
64+
- name: Setup git user
65+
run: |
66+
git config --global user.email "ops+npm-cli@npmjs.com"
67+
git config --global user.name "npm cli ops bot"
68+
- uses: actions/setup-node@v3
4769
with:
4870
node-version: ${{ matrix.node-version }}
49-
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
5071
- name: Update to workable npm (windows)
51-
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12') || startsWith(matrix.node-version, '14'))
72+
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
73+
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.'))
5274
run: |
5375
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
5476
tar xf npm-7.5.4.tgz
5577
cd package
5678
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
5779
cd ..
5880
rmdir /s /q package
59-
- name: Update npm
81+
- name: Update npm to 7
82+
# If we do test on npm 10 it needs npm7
83+
if: startsWith(matrix.node-version, '10.')
84+
run: npm i --prefer-online --no-fund --no-audit -g npm@7
85+
- name: Update npm to latest
86+
if: ${{ !startsWith(matrix.node-version, '10.') }}
6087
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
6188
- run: npm -v
6289
- run: npm i
63-
- run: npm test --ignore-scripts -w workspaces/libnpmdiff
90+
- run: npm test --ignore-scripts -w libnpmdiff

.github/workflows/ci-libnpmexec.yml

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,53 @@
1-
name: Node Workspace CI libnpmexec
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: CI - libnpmexec
24

35
on:
6+
workflow_dispatch:
47
pull_request:
8+
branches:
9+
- '*'
510
paths:
611
- workspaces/libnpmexec/**
712
push:
8-
paths:
9-
- workspaces/libnpmexec/**
1013
branches:
11-
- release-next
14+
- main
1215
- latest
13-
workflow_dispatch:
16+
paths:
17+
- workspaces/libnpmexec/**
18+
schedule:
19+
# "At 02:00 on Monday" https://crontab.guru/#0_2_*_*_1
20+
- cron: "0 2 * * 1"
1421

1522
jobs:
1623
lint:
1724
runs-on: ubuntu-latest
1825
steps:
19-
# Checkout the npm/cli repo
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-node@v2
26+
- uses: actions/checkout@v3
27+
- name: Setup git user
28+
run: |
29+
git config --global user.email "ops+npm-cli@npmjs.com"
30+
git config --global user.name "npm cli ops bot"
31+
- uses: actions/setup-node@v3
2232
with:
23-
node-version: '16'
24-
- run: npm i --prefer-online -g npm@latest
33+
node-version: 16.x
34+
- name: Update npm to latest
35+
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
36+
- run: npm -v
2537
- run: npm i
26-
- run: npm run lint -w workspaces/libnpmexec
38+
- run: npm run lint -w libnpmexec
2739

2840
test:
2941
strategy:
3042
fail-fast: false
3143
matrix:
32-
node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x]
44+
node-version:
45+
- 12.13.0
46+
- 12.x
47+
- 14.15.0
48+
- 14.x
49+
- 16.0.0
50+
- 16.x
3351
platform:
3452
- os: ubuntu-latest
3553
shell: bash
@@ -42,22 +60,31 @@ jobs:
4260
run:
4361
shell: ${{ matrix.platform.shell }}
4462
steps:
45-
- uses: actions/checkout@v2
46-
- uses: actions/setup-node@v2
63+
- uses: actions/checkout@v3
64+
- name: Setup git user
65+
run: |
66+
git config --global user.email "ops+npm-cli@npmjs.com"
67+
git config --global user.name "npm cli ops bot"
68+
- uses: actions/setup-node@v3
4769
with:
4870
node-version: ${{ matrix.node-version }}
49-
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
5071
- name: Update to workable npm (windows)
51-
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12') || startsWith(matrix.node-version, '14'))
72+
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
73+
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.'))
5274
run: |
5375
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
5476
tar xf npm-7.5.4.tgz
5577
cd package
5678
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
5779
cd ..
5880
rmdir /s /q package
59-
- name: Update npm
81+
- name: Update npm to 7
82+
# If we do test on npm 10 it needs npm7
83+
if: startsWith(matrix.node-version, '10.')
84+
run: npm i --prefer-online --no-fund --no-audit -g npm@7
85+
- name: Update npm to latest
86+
if: ${{ !startsWith(matrix.node-version, '10.') }}
6087
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
6188
- run: npm -v
6289
- run: npm i
63-
- run: npm test --ignore-scripts -w workspaces/libnpmexec
90+
- run: npm test --ignore-scripts -w libnpmexec

0 commit comments

Comments
 (0)