Skip to content

Commit

Permalink
fix: Build and package
Browse files Browse the repository at this point in the history
New TS versions need specific includes for build
  • Loading branch information
seebeen committed Sep 21, 2024
1 parent 760cd91 commit 5a28559
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 21 deletions.
16 changes: 7 additions & 9 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
.github
coverage
lib
.releaserc
test

.editorconfig
.eslintrc.cjs
.gitignore
.npmignore
.nvmrc
.prettierrc
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
jest.config.json
LICENSE
README.md
.nvmrc
test
.vscode
CHANGELOG.md
tsconfig.*
scrutinizer.yml
tsconfig.*
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"test:setup": "cd ./test/fixtures/dist-test && npm install",
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest -i --forceExit",
"test:watch": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --watch -i --forceExit",
"test:cov": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --coverage -i --forceExit",
"semantic-release": "semantic-release"
"test:cov": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --coverage -i --forceExit"
},
"type": "module",
"engines": {
Expand Down
23 changes: 16 additions & 7 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"extends": "./tsconfig",
"exclude": ["node_modules", "dist", "**/*spec.ts", "./.eslintrc.cjs", "test/get-context.ts"],
"compilerOptions": {
"sourceMap": true
},
"rootDir": "lib",
}
"extends": "./tsconfig",
"include": [
"lib/**/*.ts"
],
"exclude": [
"node_modules",
"dist",
"**/*spec.ts",
"./.eslintrc.cjs",
"test/get-context.ts"
],
"compilerOptions": {
"sourceMap": true
},
"rootDir": "lib/",
}
10 changes: 7 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
"strictPropertyInitialization": false,
"strictNullChecks": false,
"sourceMap": true,
"outDir": "dist",
"outDir": "dist/",
},
"include": ["lib/**/*", "test/**/*.ts", ".eslintrc.cjs"],
}
"include": [
"lib/**/*",
"test/**/*.ts",
".eslintrc.cjs"
],
}

0 comments on commit 5a28559

Please sign in to comment.