Skip to content

Commit 5650f88

Browse files
Add separate tsconfig.build.json
1 parent cd9a543 commit 5650f88

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"description": "Install 1Password CLI into your GitHub Actions jobs",
55
"main": "dist/index.js",
66
"type": "module",
7+
"types": "dist/index.d.ts",
78
"scripts": {
8-
"build": "ncc build ./src/index.ts",
9+
"build": "tsc -p tsconfig.build.json && ncc build ./src/index.ts",
910
"format": "prettier",
1011
"format:check": "npm run format -- --check ./",
1112
"format:write": "npm run format -- --write ./",

tsconfig.build.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src"],
4+
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.js"],
5+
"compilerOptions": {
6+
"declaration": true,
7+
"outDir": "dist"
8+
}
9+
}

0 commit comments

Comments
 (0)