Skip to content

Commit 5c8ef2a

Browse files
authored
Update repo (#110)
1 parent 31dc885 commit 5c8ef2a

File tree

6 files changed

+2528
-3352
lines changed

6 files changed

+2528
-3352
lines changed

.github/workflows/check.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [16.x]
15+
node-version: [18.x]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919

20-
- uses: actions/setup-node@v2
20+
- uses: actions/setup-node@v3
2121
with:
2222
node-version: "${{ matrix.node-version }}"
2323

2424
- name: Cache node_modules
2525
id: cache-node_modules
26-
uses: actions/cache@v2
26+
uses: actions/cache@v3
2727
with:
2828
path: node_modules
29-
key: node_modules-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
29+
key: node_modules-${{ matrix.node-version }}-${{ hashFiles('package.json', 'package-lock.json') }}
3030

3131
- name: npm ci
3232
if: steps.cache-node_modules.outputs.cache-hit != 'true'
@@ -36,7 +36,7 @@ jobs:
3636
run: npm run build
3737

3838
- name: ESLint
39-
run: npx --no-install eslint . --report-unused-disable-directives
39+
run: npx eslint . --report-unused-disable-directives
4040

4141
- name: Prettier
42-
run: npx --no-install prettier --check .
42+
run: npx prettier --check .

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [12.x, 14.x, 16.x]
15+
node-version: [14.x, 16.x, 18.x]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919

20-
- uses: actions/setup-node@v2
20+
- uses: actions/setup-node@v3
2121
with:
2222
node-version: "${{ matrix.node-version }}"
2323

2424
- name: Cache node_modules
2525
id: cache-node_modules
26-
uses: actions/cache@v2
26+
uses: actions/cache@v3
2727
with:
2828
path: node_modules
29-
key: node_modules-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
29+
key: node_modules-${{ matrix.node-version }}-${{ hashFiles('package.json', 'package-lock.json') }}
3030

3131
- name: npm ci
3232
if: steps.cache-node_modules.outputs.cache-hit != 'true'
3333
run: npm ci
3434

3535
- name: Jest
36-
run: npx --no-install jest --coverage
36+
run: npx jest --coverage

build.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ const FILES_TO_COPY = [
2222
.map((file) => ({ src: path.join(SRC, file), dest: file })),
2323
];
2424

25-
if (fs.rmSync !== undefined) {
26-
fs.rmSync(BUILD, { recursive: true, force: true });
27-
} else if (fs.existsSync(BUILD)) {
28-
fs.rmdirSync(BUILD, { recursive: true });
29-
}
30-
25+
fs.rmSync(BUILD, { recursive: true, force: true });
3126
fs.mkdirSync(BUILD);
3227

3328
for (const { src, dest = src, transform } of FILES_TO_COPY) {

0 commit comments

Comments
 (0)