create-dex 0.0.0-stage → 0.13.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Connor Forsyth
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
- # Temporary Holding Version
1
+ # create-dex
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Start a [Dex](https://www.npmjs.com/package/@dexhq/canvas) studio:
4
+
5
+ ```sh
6
+ npm create dex@latest # in your project, or an empty folder
7
+ npm create dex@latest my-app # a new project in my-app
8
+ npm create dex@latest -- --yes # flags go after --
9
+ ```
10
+
11
+ `pnpm create dex`, `yarn create dex` and `bun create dex` work too.
12
+
13
+ It runs `dex create` from `@dexhq/canvas` at the same version, with the
14
+ same arguments: in a project it finds your components and connects your
15
+ agent; in an empty folder it starts a new project from a starter. Every
16
+ flag is in `@dexhq/canvas`'s README, or `npm create dex@latest -- --help`.
17
+
18
+ Licence: MIT.
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ // `npm create dex@latest [folder] [-- flags]`: `dex create` from
3
+ // @dexhq/canvas, at this package's version, with the same arguments. What it
4
+ // prints, asks and exits with is create's own.
5
+
6
+ import { createRequire } from "node:module";
7
+ import { dirname, join } from "node:path";
8
+ import { pathToFileURL } from "node:url";
9
+
10
+ const require = createRequire(import.meta.url);
11
+ const manifest = require.resolve("@dexhq/canvas/package.json");
12
+ const { bin } = require(manifest);
13
+
14
+ // The CLI reads its command from process.argv, as `dex create …` would.
15
+ process.argv.splice(2, 0, "create");
16
+ await import(pathToFileURL(join(dirname(manifest), bin.dex)).href);
package/package.json CHANGED
@@ -1,6 +1,22 @@
1
1
  {
2
2
  "name": "create-dex",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.13.0",
4
+ "license": "MIT",
5
+ "description": "Start a Dex studio: `npm create dex@latest`.",
6
+ "type": "module",
7
+ "bin": {
8
+ "create-dex": "./bin/create-dex.mjs"
9
+ },
10
+ "files": [
11
+ "bin"
12
+ ],
13
+ "dependencies": {
14
+ "@dexhq/canvas": "0.13.0"
15
+ },
16
+ "engines": {
17
+ "node": ">=20.12"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ }
22
+ }