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 1, 2022
1 parent 3f778ba commit 5d9792f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
3 changes: 3 additions & 0 deletions packages/eventual-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"build": "exit 0",
"clean": "tsc --build tsconfig.build.json --clean",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "yarn clean",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
Expand Down
12 changes: 12 additions & 0 deletions packages/eventual-send/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": true
},
"exclude": [
"test/"
]
}
22 changes: 9 additions & 13 deletions packages/eventual-send/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
// This file can contain .js-specific Typescript compiler config.
{
"compilerOptions": {
"allowJs": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",

"noEmit": true,
"checkJs": true,
/*
// The following flags are for creating .d.ts files:
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
*/
"noEmit": true,
"downlevelIteration": true,

"strictNullChecks": true,
"moduleResolution": "node",
"allowJs": true,
"noImplicitAny": false,
"useUnknownInCatchVariables": false,
"skipLibCheck": false,
},
"include": ["*.js", "*.ts", "src/**/*.js", "src/**/*.ts"]
"include": [
"*.js",
"*.ts",
"src/**/*.js",
"src/**/*.ts"
]
}

0 comments on commit 5d9792f

Please sign in to comment.