Skip to content

Commit cb75f14

Browse files
committed
chore: use node 18 and npm
1 parent d4d0d0f commit cb75f14

File tree

9 files changed

+2549
-1647
lines changed

9 files changed

+2549
-1647
lines changed

Diff for: .eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
root: true,
23
parser: '@typescript-eslint/parser',
34
parserOptions: {
45
ecmaVersion: 2018,

Diff for: .github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
11-
node: [12, 14, 16]
11+
node: [18]
1212
steps:
13-
- uses: "actions/checkout@v2"
14-
- uses: "actions/setup-node@v1"
13+
- uses: "actions/checkout@v3"
14+
- uses: "actions/setup-node@v3"
1515
with: { node-version: "${{ matrix.node }}" }
16-
- run: yarn --frozen-lockfile
17-
- run: yarn build
18-
- run: yarn lint
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm run lint

Diff for: .node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18

Diff for: .npmignore

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
/src
2-
/tsconfig.json
3-
/tslint.json
4-
/scripts
51
*.map
62
*.ts
7-
/.script/**
8-
/.tmp
3+
/.eslintignore
4+
/.eslintrc
5+
/.github/
6+
/.node-version
7+
/.vim/
8+
/lib/**/*.test.js
9+
/lib/__mocks__/
10+
/scripts/
11+
/src/
12+
/tsconfig.json
13+
/tslint.json

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Trigger completion in `coc-settings.json` to get complete list.
2121

2222
## Development
2323

24-
1. Run `yarn build` or `yarn build:watch`
25-
2. Link extension: `yarn run link` / `yarn run unlink`
24+
1. Run `npm run build` or `npm run build:watch`
25+
2. Link extension: `npm run link` / `npm run unlink`
2626

2727
## License
2828

0 commit comments

Comments
 (0)