Skip to content

Commit

Permalink
chore: update TypeScript config
Browse files Browse the repository at this point in the history
  • Loading branch information
liby committed Oct 18, 2023
1 parent 516f053 commit ce23723
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 14 deletions.
5 changes: 2 additions & 3 deletions packages/date-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
"main": "lib/date-helpers.js",
"typings": "lib/date-helpers.d.ts",
"directories": {
"lib": "lib",
"test": "__tests__"
"lib": "lib"
},
"files": [
"lib"
],
"scripts": {
"build": "tsc",
"build": "tsc --build tsconfig.build.json",
"docs": "pnpm exec typedoc --plugin typedoc-plugin-markdown --out docs src/date-helpers.ts",
"eslint": "eslint --cache 'src/**/*.ts*'",
"lint": "pnpm prettier && pnpm eslint",
Expand Down
9 changes: 9 additions & 0 deletions packages/date-helpers/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [{ "path": "../exceptions" }],
"include": ["./src"]
}
10 changes: 3 additions & 7 deletions packages/date-helpers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"rootDir": ".",
"outDir": "./lib"
},
"references": [
{
"path": "../exceptions"
}
],
"include": ["./src"]
"references": [{ "path": "../exceptions" }],
"include": ["src", "__tests__"]
}
5 changes: 2 additions & 3 deletions packages/exceptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"directories": {
"lib": "lib",
"test": "__tests__"
"lib": "lib"
},
"files": [
"lib"
],
"scripts": {
"build": "tsc",
"build": "tsc --build tsconfig.build.json",
"docs": "pnpm exec typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts",
"eslint": "eslint --cache 'src/**/*.ts*'",
"lint": "pnpm prettier && pnpm eslint",
Expand Down
8 changes: 8 additions & 0 deletions packages/exceptions/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"include": ["./src"]
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
"sourceMap": true,
"skipLibCheck": true
},
"include": ["packages/**/__tests__/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit ce23723

Please sign in to comment.