Skip to content

Commit

Permalink
build: prepack to build types
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Oct 24, 2022
1 parent d895b41 commit 9d3e266
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
10 changes: 10 additions & 0 deletions packages/bundle-source/jsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./jsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": ["test/"]
}
13 changes: 11 additions & 2 deletions packages/bundle-source/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
"compilerOptions": {
"target": "esnext",
"module": "esnext",
// "checkJs": true,
"noEmit": true,
"downlevelIteration": true,
"strictNullChecks": true,
"moduleResolution": "node"
"moduleResolution": "node",
"types": [
"node",
]
},
"include": ["*.js", "*.ts", "src/**/*.js", "src/**/*.ts"]
"include": [
"*.js",
"*.ts",
"src/**/*.js",
"src/**/*.ts"
]
}
3 changes: 3 additions & 0 deletions packages/bundle-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
},
"scripts": {
"build": "exit 0",
"clean": "tsc --build jsconfig.build.json --clean",
"prepack": "tsc --build jsconfig.build.json",
"postpack": "yarn clean",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down

0 comments on commit 9d3e266

Please sign in to comment.