Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d198bd77a |
@@ -8,7 +8,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc --noEmit && tsdown",
|
||||
"dev": "tsdown --watch --onSuccess \"node --env-file=.env dist/start.js\"",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules --onSuccess \"node --env-file=.env dist/start.js\"",
|
||||
"start": "node --env-file=.env dist/start.js",
|
||||
"check:lint": "eslint . --max-warnings 10",
|
||||
"check:types": "tsc --noEmit",
|
||||
|
||||
@@ -5,6 +5,6 @@ export default defineConfig({
|
||||
outDir: "dist",
|
||||
format: ["esm"],
|
||||
dts: false,
|
||||
clean: true,
|
||||
clean: false, // 改为 false 避免每次清理触发重新监视
|
||||
sourcemap: false,
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"license": "AGPL-3.0",
|
||||
"scripts": {
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"build": "tsdown",
|
||||
"check:lint": "eslint . --max-warnings 0",
|
||||
"check:types": "tsc --noEmit",
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"check:lint": "eslint . --max-warnings 2",
|
||||
"check:types": "tsc --noEmit",
|
||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc && tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"check:lint": "eslint . --max-warnings 30",
|
||||
"check:types": "tsc --noEmit",
|
||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"check:lint": "eslint . --max-warnings 6",
|
||||
"check:types": "tsc --noEmit",
|
||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"build": "tsdown",
|
||||
"check:lint": "eslint . --max-warnings 2",
|
||||
"check:types": "tsc --noEmit",
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"check:lint": "eslint . --max-warnings 0",
|
||||
"check:types": "tsc --noEmit",
|
||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"license": "AGPL-3.0",
|
||||
"scripts": {
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"build": "tsdown",
|
||||
"check:lint": "eslint . --max-warnings 7",
|
||||
"check:types": "tsc --noEmit",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"check:lint": "eslint . --max-warnings 62",
|
||||
"check:types": "tsc --noEmit",
|
||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"build": "tsdown",
|
||||
"check:lint": "eslint . --max-warnings 36",
|
||||
"check:types": "tsc --noEmit",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build",
|
||||
"postcss": "postcss styles/globals.css -o styles/output.css --watch",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
"dev": "tsdown --watch --ignore-watch .turbo --ignore-watch dist --ignore-watch node_modules",
|
||||
"check:lint": "eslint . --max-warnings 20",
|
||||
"check:types": "tsc --noEmit",
|
||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||
|
||||
11
turbo.json
11
turbo.json
@@ -33,7 +33,16 @@
|
||||
"dev": {
|
||||
"dependsOn": ["^build"],
|
||||
"cache": false,
|
||||
"persistent": true
|
||||
"persistent": true,
|
||||
"inputs": [
|
||||
"src/**",
|
||||
"package.json",
|
||||
"tsconfig.json",
|
||||
"tsdown.config.ts",
|
||||
"next.config.js",
|
||||
".env",
|
||||
".env.local"
|
||||
]
|
||||
},
|
||||
"check:types": {
|
||||
"dependsOn": ["^build"],
|
||||
|
||||
Reference in New Issue
Block a user