Skip to content

Commit 0142374

Browse files
Fix tsconfig, add build step in CI (#267)
1 parent 35e829b commit 0142374

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
steps:
4141
- setup-node:
4242
node-version: <<parameters.node-version>>
43+
- run: npm run build
4344
- run: npm run test:ci
4445
- store_test_results:
4546
path: junit.xml

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"node": true,
55
"jest": true
66
},
7+
"ignorePatterns": ["build", "node_modules"],
78
"parserOptions": {
89
"project": "./tsconfig.json"
910
},

tsconfig.cjs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"target": "ES2021",
55
"module": "CommonJS",
6+
"moduleResolution": "Node",
67
"outDir": "./build/cjs"
78
},
89
"include": ["src"]

tsconfig.esm.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": ".",
33
"compilerOptions": {
4-
"module": "ESNext",
54
"outDir": "./build/esm"
65
},
76
"include": ["src"]

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "@oly_op/tsconfig/tsconfig",
33
"compilerOptions": {
44
"lib": ["ES2021"],
5-
"declaration": true
5+
"declaration": true,
6+
"module": "NodeNext"
67
},
78
"ts-node": {
89
"esm": true,

0 commit comments

Comments
 (0)