@murumets-ee/create 0.13.1 → 0.13.3

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/README.md CHANGED
@@ -1,15 +1,26 @@
1
1
  # @murumets-ee/create
2
2
 
3
- Project scaffolding — create-lumi CLI for bootstrapping new Lumi CMS projects.
3
+ Project scaffolder for [Lumi CMS](https://github.com/murumets-ee/lumi-cms) — a modular, type-safe CMS toolkit for Node.js.
4
4
 
5
- Part of [Lumi CMS](https://github.com/murumets-ee/lumi-cms) — a modular, type-safe CMS toolkit for Node.js.
5
+ ## Usage
6
6
 
7
- ## Install
7
+ This is a one-shot scaffolder. Don't `npm install` it — invoke it with `npm create` / `pnpm dlx`.
8
8
 
9
9
  ```bash
10
- npm install @murumets-ee/create
10
+ # Recommended (works through the create-FOO shorthand):
11
+ npm create lumi-cms my-app
12
+ pnpm create lumi-cms my-app
13
+
14
+ # Or the canonical scoped form:
15
+ pnpm dlx @murumets-ee/create@latest my-app --full
11
16
  ```
12
17
 
18
+ The first three forms go through the [`create-lumi-cms`](https://www.npmjs.com/package/create-lumi-cms) wrapper, which delegates here. They behave identically.
19
+
20
+ > **Heads-up — name collision.** The unscoped name `create-lumi` on npm is held by an unrelated project. Do **NOT** run `npm create lumi`, `pnpm create lumi`, or `pnpm dlx create-lumi` — those resolve to the squatted package. Always use `lumi-cms` (with `-cms` suffix) or the scoped `@murumets-ee/create` form.
21
+
22
+ For all flags, presets, environment setup, and post-scaffold steps see the [Lumi CMS root README](https://github.com/murumets-ee/lumi-cms#quick-start-new-project).
23
+
13
24
  ## License
14
25
 
15
26
  [Elastic License 2.0 (ELv2)](../../LICENSE)
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ // Source-shipped bin shim. Always exists, so `pnpm install` (or any
3
+ // other tool that links bin entries during dep resolution) never warns
4
+ // about a missing target — even on a cold checkout where dist/ has not
5
+ // been built yet. The real CLI is a tsdown bundle at ../dist/cli.mjs;
6
+ // running it via dynamic import keeps argv pass-through transparent
7
+ // (cli.ts reads process.argv directly).
8
+ //
9
+ // Failure-on-missing-dist is acceptable: if anyone tries to RUN the bin
10
+ // before `pnpm build` (or `prepublishOnly`) has produced dist/, they'll
11
+ // get a clear ERR_MODULE_NOT_FOUND with the path. End users always
12
+ // install from the published tarball, which includes dist/, so they
13
+ // never hit that path.
14
+ await import('../dist/cli.mjs')
package/dist/cli.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,18 +1,22 @@
1
1
  {
2
2
  "name": "@murumets-ee/create",
3
- "version": "0.13.1",
3
+ "version": "0.13.3",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "bin": {
7
- "create-lumi": "./dist/cli.mjs"
7
+ "create-lumi": "./bin/create-lumi.mjs"
8
8
  },
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/index.d.mts",
12
12
  "import": "./dist/index.mjs"
13
+ },
14
+ "./cli": {
15
+ "import": "./dist/cli.mjs"
13
16
  }
14
17
  },
15
18
  "files": [
19
+ "bin",
16
20
  "dist",
17
21
  "templates/*.tar.gz"
18
22
  ],
@@ -26,7 +30,7 @@
26
30
  "tsdown": "^0.21.10",
27
31
  "tsx": "^4.21.0",
28
32
  "typescript": "^5.7.3",
29
- "@murumets-ee/cli": "^0.13.1"
33
+ "@murumets-ee/cli": "^0.13.3"
30
34
  },
31
35
  "typeCoverage": {
32
36
  "atLeast": 100
Binary file