Skip to content

Commit

Permalink
chore: update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
likun7981 committed Jun 17, 2022
1 parent 3d1fc3d commit e1daa6f
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 9,006 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "module",
"scripts": {
"app:dev": "pnpm -r --filter=./packages/app run dev",
"build": "pnpm -r --filter=./packages/* run build",
"build": "pnpm -r --filter=./packages/core run build",
"docs:build": "vitepress build docs",
"docs:dev": "vitepress dev docs",
"lint": "eslint --fix packages/**/*.{ts,tsx}",
Expand Down
16 changes: 3 additions & 13 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"include": ["src"],
"exclude": ["test", "example"],
"exclude": ["src/__tests__"],
"compilerOptions": {
"module": "esnext",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"lib": ["esnext", "DOM"],
"moduleResolution": "node",
"outDir": "lib",
"skipLibCheck": true,
"resolveJsonModule": true
"outDir": "lib"
}
}
14 changes: 4 additions & 10 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,17 @@
"node": "^14.13.1 || >=16.0.0"
},
"scripts": {
"dev": "npm run clean && tsc && npm run env && tsc -w",
"clean": "rm -rf lib",
"cp": "cp src/hlink.config.tpl lib/hlink.config.tpl",
"cp": "cp src/main/hlink.config.tpl lib/main/hlink.config.tpl",
"build": "npm run clean && tsc && npm run cp",
"prepublishOnly": "npm run build",
"env": "rm /usr/local/bin/hlink && ln -s $PWD/lib/cli-dev.js /usr/local/bin/hlink && chmod +x ./lib/cli-dev.js",
"np": "np --no-cleanup --no-tests --no-yarn",
"np:beta": "np --tag=beta --any-branch --no-cleanup --no-tests --no-yarn"
"prepublishOnly": "npm run build"
},
"files": [
"lib"
],
"keywords": [
"cli",
"cli-app",
"unicorn",
"fun"
"hlink",
"hard-link"
],
"devDependencies": {
"@types/micromatch": "^4.0.2",
Expand Down
14 changes: 3 additions & 11 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"include": ["src"],
"exclude": ["src/__tests__"],
"compilerOptions": {
"module": "esnext",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"moduleResolution": "node",
"outDir": "lib",
"skipLibCheck": true,
"resolveJsonModule": true
"outDir": "lib"
}
}
Loading

0 comments on commit e1daa6f

Please sign in to comment.