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