@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.
Files changed (42) hide show
  1. package/assets/Dockerfile +5 -14
  2. package/assets/commitlint.config.ts +3 -1
  3. package/assets/eslint.config.js +14 -2
  4. package/assets/lint-staged.config.js +3 -1
  5. package/assets/package.json +6 -7
  6. package/assets/repoctl.config.ts +3 -30
  7. package/assets/stylelint.config.js +3 -1
  8. package/assets/vitest.config.ts +3 -1
  9. package/assets-data.mjs +0 -1
  10. package/dist/index.mjs +12 -5
  11. package/package.json +1 -1
  12. package/templates/cli/bin/index.js +1 -1
  13. package/templates/cli/package.json +5 -2
  14. package/templates/cli/{tsup.config.ts → tsdown.config.ts} +3 -2
  15. package/templates/client/eslint.config.js +2 -4
  16. package/templates/client/gitignore +0 -1
  17. package/templates/client/package.json +8 -8
  18. package/templates/client/worker-configuration.d.ts +13557 -0
  19. package/templates/client/wrangler.jsonc +3 -0
  20. package/templates/server/eslint.config.js +8 -0
  21. package/templates/server/gitignore +0 -1
  22. package/templates/server/package.json +8 -7
  23. package/templates/server/{tsup.config.ts → tsdown.config.ts} +2 -1
  24. package/templates/server/vitest.config.ts +3 -2
  25. package/templates/server/worker-configuration.d.ts +13557 -0
  26. package/templates/server/wrangler.jsonc +3 -0
  27. package/templates/tsdown/vitest.config.ts +3 -2
  28. package/templates/vitepress/monorepo/commands.md +12 -2
  29. package/templates/vitepress/monorepo/troubleshooting.md +20 -1
  30. package/templates/vitepress/package.json +1 -1
  31. package/templates/vitepress/why/examples/3.npm-basic-package/package-lock.json +605 -2770
  32. package/templates/vitepress/why/examples/3.npm-basic-package/package.json +5 -6
  33. package/templates/vitepress/why/examples/3.npm-basic-package/tsdown.config.ts +16 -0
  34. package/templates/vitepress/why/modern/bundlers.md +11 -0
  35. package/templates/vue-lib/eslint.config.js +1 -3
  36. package/templates/vue-lib/package.json +7 -7
  37. package/templates/vue-lib/test-d/index.test-d.ts +1 -1
  38. package/templates/vue-lib/vitest.config.ts +1 -3
  39. package/assets/tooling/ensure-tooling-built.mjs +0 -24
  40. package/assets/tooling/load-tooling-module.mjs +0 -71
  41. package/templates/vitepress/why/examples/3.npm-basic-package/build.config.ts +0 -24
  42. 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",
@@ -0,0 +1,8 @@
1
+ import { defineEslintConfig } from 'repoctl/tooling'
2
+
3
+ export default await defineEslintConfig({
4
+ options: {
5
+ typescript: true,
6
+ ignores: ['worker-configuration.d.ts'],
7
+ },
8
+ })
@@ -1,2 +1 @@
1
1
  .wrangler
2
- worker-configuration.d.ts
@@ -2,7 +2,7 @@
2
2
  "name": "@icebreakers/server",
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
- "description": "tsup(esbuild) build package template",
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": "tsup",
29
- "build:watch": "tsup --watch --sourcemap",
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.js",
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.16",
60
- "wrangler": "^4.87.0",
61
- "zod": "^4.4.2"
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,4 +1,4 @@
1
- import { defineConfig } from 'tsup'
1
+ import { defineConfig } from 'tsdown'
2
2
 
3
3
  export default defineConfig({
4
4
  entry: ['src/node-entry.ts'],
@@ -6,4 +6,5 @@ export default defineConfig({
6
6
  format: ['esm'],
7
7
  clean: true,
8
8
  dts: false,
9
+ target: 'node18',
9
10
  })
@@ -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 { defineVitestProjectConfig } = await loadRepoctlToolingModule()
6
+ const __dirname = path.dirname(fileURLToPath(import.meta.url))
6
7
 
7
8
  export default defineProject(await defineVitestProjectConfig({
8
9
  options: {