@homepages/create-workspace 0.8.0 → 0.9.0-dev-20260719205406

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/dist/index.js CHANGED
@@ -10,11 +10,20 @@ import { fileURLToPath } from "node:url";
10
10
  import { stampTree } from "./stamp.js";
11
11
  const ASSETS = join(dirname(fileURLToPath(import.meta.url)), "..", "scaffold");
12
12
  const NAME_RE = /^[a-z][a-z0-9-]*$/;
13
+ /**
14
+ * The authoring ESLint preset's caret pin. Unlike the kit it cannot be derived from
15
+ * this package's own version — @homepages/eslint-plugin-template versions
16
+ * independently — so it is a committed constant, bumped when that package releases a
17
+ * new minor. A scaffolded workspace whose config imports a preset it does not depend
18
+ * on fails at `npm install`, not at lint time, so this is not optional.
19
+ */
20
+ const ESLINT_PLUGIN_VERSION = "0.1.0";
13
21
  export async function scaffoldWorkspace(name, targetDir, opts) {
14
22
  await mkdir(targetDir, { recursive: true });
15
23
  await stampTree(join(ASSETS, "workspace"), targetDir, {
16
24
  WORKSPACE_NAME: name,
17
25
  KIT_VERSION: opts.kitVersion,
26
+ ESLINT_PLUGIN_VERSION: opts.eslintPluginVersion ?? ESLINT_PLUGIN_VERSION,
18
27
  });
19
28
  await stampTree(join(ASSETS, "template"), join(targetDir, "templates", "starter"), {
20
29
  TEMPLATE_KEY: "starter",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homepages/create-workspace",
3
- "version": "0.8.0",
3
+ "version": "0.9.0-dev-20260719205406",
4
4
  "description": "Scaffold a HomePages template workspace.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -25,6 +25,8 @@
25
25
  "check": "npm run typecheck && npm run build && npm run test"
26
26
  },
27
27
  "devDependencies": {
28
+ "@types/semver": "^7.5.8",
29
+ "semver": "^7.6.3",
28
30
  "tsx": "^4.19.2",
29
31
  "typescript": "^5.7.2"
30
32
  }
@@ -13,6 +13,7 @@
13
13
  "react-dom": "^19.0.0"
14
14
  },
15
15
  "devDependencies": {
16
+ "@homepages/eslint-plugin-template": "^{{ESLINT_PLUGIN_VERSION}}",
16
17
  "@tailwindcss/cli": "^4.3.0",
17
18
  "@types/react": "^19.0.0",
18
19
  "@types/react-dom": "^19.0.0",
@@ -1,3 +1,3 @@
1
- import kit from "@homepages/template-kit/eslint";
1
+ import kit from "@homepages/eslint-plugin-template";
2
2
 
3
3
  export default kit;