Skip to content

Commit

Permalink
chore: separate build config
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Mar 21, 2023
1 parent 9e695a0 commit f281aae
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
14 changes: 3 additions & 11 deletions cspell.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
dictionaries:
- companies
- css
- en_us
- en-gb
- fullstack
- html
- lorem-ipsum
- sql
- typescript
ignoreRegExpList:
- /.*[0-9].*/
language: en
Expand All @@ -22,4 +12,6 @@ words:
- turborepo
- turbowatch
- vitest
- wholename
- wholename
- roarr
- interruptible
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@
"url": "https://github.com/gajus/turbowatch"
},
"scripts": {
"build": "rm -fr ./dist && tsc --noEmit false",
"build": "rm -fr ./dist && tsc --project tsconfig.build.json",
"dev": "tsc --watch",
"lint": "npm run lint:tsc && npm run lint:eslint && npm run lint:cspell",
"lint:cspell": "cspell './**/*.{ts,tsx}' --no-progress --gitignore",
"lint:eslint": "eslint --color .",
"lint:tsc": "tsc --noEmit",
"lint:tsc": "tsc",
"test:vitest": "vitest --passWithNoTests"
},
"types": "./dist/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"noEmit": false,
"outDir": "dist"
},
"extends": "./tsconfig.json",
"include": [
"src"
]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
],
"module": "commonjs",
"moduleResolution": "node",
"noEmit": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"outDir": "dist",
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
Expand Down

0 comments on commit f281aae

Please sign in to comment.