@icebreakers/monorepo-templates 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/Dockerfile +5 -14
- package/assets/commitlint.config.ts +3 -1
- package/assets/eslint.config.js +14 -2
- package/assets/lint-staged.config.js +3 -1
- package/assets/package.json +6 -7
- package/assets/repoctl.config.ts +3 -30
- package/assets/stylelint.config.js +3 -1
- package/assets/vitest.config.ts +3 -1
- package/assets-data.mjs +0 -1
- package/dist/index.mjs +12 -5
- package/package.json +1 -1
- package/templates/cli/bin/index.js +1 -1
- package/templates/cli/package.json +5 -2
- package/templates/cli/{tsup.config.ts → tsdown.config.ts} +3 -2
- package/templates/client/eslint.config.js +2 -4
- package/templates/client/gitignore +0 -1
- package/templates/client/package.json +8 -8
- package/templates/client/worker-configuration.d.ts +13557 -0
- package/templates/client/wrangler.jsonc +3 -0
- package/templates/server/eslint.config.js +8 -0
- package/templates/server/gitignore +0 -1
- package/templates/server/package.json +8 -7
- package/templates/server/{tsup.config.ts → tsdown.config.ts} +2 -1
- package/templates/server/vitest.config.ts +3 -2
- package/templates/server/worker-configuration.d.ts +13557 -0
- package/templates/server/wrangler.jsonc +3 -0
- package/templates/tsdown/vitest.config.ts +3 -2
- package/templates/vitepress/monorepo/commands.md +12 -2
- package/templates/vitepress/monorepo/troubleshooting.md +20 -1
- package/templates/vitepress/package.json +1 -1
- package/templates/vitepress/why/examples/3.npm-basic-package/package-lock.json +605 -2770
- package/templates/vitepress/why/examples/3.npm-basic-package/package.json +5 -6
- package/templates/vitepress/why/examples/3.npm-basic-package/tsdown.config.ts +16 -0
- package/templates/vitepress/why/modern/bundlers.md +11 -0
- package/templates/vue-lib/eslint.config.js +1 -3
- package/templates/vue-lib/package.json +7 -7
- package/templates/vue-lib/test-d/index.test-d.ts +1 -1
- package/templates/vue-lib/vitest.config.ts +1 -3
- package/assets/tooling/ensure-tooling-built.mjs +0 -24
- package/assets/tooling/load-tooling-module.mjs +0 -71
- package/templates/vitepress/why/examples/3.npm-basic-package/build.config.ts +0 -24
- package/templates/vitepress/why/examples/3.npm-basic-package/tsup.config.ts +0 -16
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
"$schema": "./node_modules/wrangler/config-schema.json",
|
|
3
3
|
"name": "monorepo-client",
|
|
4
4
|
"compatibility_date": "2025-10-16",
|
|
5
|
+
"compatibility_flags": [
|
|
6
|
+
"nodejs_compat"
|
|
7
|
+
],
|
|
5
8
|
"main": "./worker/fetch-entry.ts",
|
|
6
9
|
"assets": {
|
|
7
10
|
"not_found_handling": "single-page-application",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@icebreakers/server",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"version": "0.0.0",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "tsdown build package template",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
27
|
"dev": "wrangler dev",
|
|
28
|
-
"build": "
|
|
29
|
-
"build:watch": "
|
|
28
|
+
"build": "tsdown",
|
|
29
|
+
"build:watch": "tsdown --watch --sourcemap",
|
|
30
30
|
"node:build:watch": "pnpm build:watch",
|
|
31
31
|
"node:build": "pnpm build",
|
|
32
32
|
"node:dev": "tsx watch src/node-entry.ts",
|
|
33
|
-
"node:start": "node dist/node-entry.
|
|
33
|
+
"node:start": "node dist/node-entry.mjs",
|
|
34
34
|
"test": "vitest run",
|
|
35
35
|
"test:dev": "vitest",
|
|
36
36
|
"release": "pnpm publish",
|
|
@@ -56,8 +56,9 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@hono/node-server": "^2.0.1",
|
|
58
58
|
"consola": "^3.4.2",
|
|
59
|
-
"hono": "^4.12.
|
|
60
|
-
"
|
|
61
|
-
"
|
|
59
|
+
"hono": "^4.12.18",
|
|
60
|
+
"tsdown": "0.21.10",
|
|
61
|
+
"wrangler": "^4.88.0",
|
|
62
|
+
"zod": "^4.4.3"
|
|
62
63
|
}
|
|
63
64
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
|
+
import { fileURLToPath } from 'node:url'
|
|
3
|
+
import { defineVitestProjectConfig } from 'repoctl/tooling'
|
|
2
4
|
import { defineProject } from 'vitest/config'
|
|
3
|
-
import { loadRepoctlToolingModule } from '../../tooling/load-tooling-module.mjs'
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
6
7
|
|
|
7
8
|
export default defineProject(await defineVitestProjectConfig({
|
|
8
9
|
options: {
|