Skip to content

Commit 5a28559

Browse files
committed
fix: Build and package
New TS versions need specific includes for build
1 parent 760cd91 commit 5a28559

File tree

4 files changed

+31
-21
lines changed

4 files changed

+31
-21
lines changed

.npmignore

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
.github
22
coverage
33
lib
4-
.releaserc
4+
test
5+
56
.editorconfig
67
.eslintrc.cjs
8+
.gitignore
9+
.npmignore
10+
.nvmrc
711
.prettierrc
812
CODE_OF_CONDUCT.md
9-
CODE_OF_CONDUCT.md
13+
CONTRIBUTING.md
1014
jest.config.json
11-
LICENSE
12-
README.md
13-
.nvmrc
14-
test
15-
.vscode
16-
CHANGELOG.md
17-
tsconfig.*
1815
scrutinizer.yml
16+
tsconfig.*

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"test:setup": "cd ./test/fixtures/dist-test && npm install",
2323
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest -i --forceExit",
2424
"test:watch": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --watch -i --forceExit",
25-
"test:cov": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --coverage -i --forceExit",
26-
"semantic-release": "semantic-release"
25+
"test:cov": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --coverage -i --forceExit"
2726
},
2827
"type": "module",
2928
"engines": {

tsconfig.build.json

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
2-
"extends": "./tsconfig",
3-
"exclude": ["node_modules", "dist", "**/*spec.ts", "./.eslintrc.cjs", "test/get-context.ts"],
4-
"compilerOptions": {
5-
"sourceMap": true
6-
},
7-
"rootDir": "lib",
8-
}
2+
"extends": "./tsconfig",
3+
"include": [
4+
"lib/**/*.ts"
5+
],
6+
"exclude": [
7+
"node_modules",
8+
"dist",
9+
"**/*spec.ts",
10+
"./.eslintrc.cjs",
11+
"test/get-context.ts"
12+
],
13+
"compilerOptions": {
14+
"sourceMap": true
15+
},
16+
"rootDir": "lib/",
17+
}

tsconfig.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"strictPropertyInitialization": false,
2626
"strictNullChecks": false,
2727
"sourceMap": true,
28-
"outDir": "dist",
28+
"outDir": "dist/",
2929
},
30-
"include": ["lib/**/*", "test/**/*.ts", ".eslintrc.cjs"],
31-
}
30+
"include": [
31+
"lib/**/*",
32+
"test/**/*.ts",
33+
".eslintrc.cjs"
34+
],
35+
}

0 commit comments

Comments
 (0)