Skip to content

Commit 3fd9b9c

Browse files
authored
fix: dist build (#18)
* fix: fix the CI tests workflow definition * fix: eslint and prettier must ignore dist/ * fix: fix tests to work as expected when running in GitHub Actions * fix: add dist build
1 parent bd5cdb3 commit 3fd9b9c

File tree

6 files changed

+281422
-38
lines changed

6 files changed

+281422
-38
lines changed

.eslintrc.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
{
22
"env": {
3-
"commonjs": true,
4-
"es6": true,
5-
"node": true,
6-
"mocha": true
3+
"commonjs": true,
4+
"es6": true,
5+
"node": true,
6+
"mocha": true
77
},
8-
"extends": [
9-
"eslint:recommended",
10-
"prettier"
11-
],
8+
"extends": ["eslint:recommended", "prettier"],
129
"globals": {
13-
"Atomics": "readonly",
14-
"SharedArrayBuffer": "readonly"
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
1512
},
1613
"parserOptions": {
17-
"ecmaVersion": 2018
14+
"ecmaVersion": 2018
1815
},
19-
"rules": {
20-
}
21-
}
16+
"ignorePatterns": ["dist/**"],
17+
"rules": {}
18+
}

.github/workflows/ci-unit-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ jobs:
1212
# This should match the using value in `actions.yaml`
1313
node-version: 12
1414
- run: npm ci
15-
- run: npm lint
16-
- run: npm test
15+
- run: npm run lint
16+
- run: npm run test

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

0 commit comments

Comments
 (0)