@nexus_js/create-nexus 0.7.1

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 Nexus Contributors
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 ADDED
@@ -0,0 +1,47 @@
1
+ # @nexus_js/create-nexus
2
+
3
+ Official project scaffold for [Nexus](https://nexusjs.dev). Published under the **`@nexus_js`** scope so you can publish without fighting for the global name `create-nexus` on npm.
4
+
5
+ **Until this package is on the registry**, `pnpm create @nexus_js/nexus` will **404**. Use **`npm exec --package=@nexus_js/cli@latest -- create-nexus my-app`** (or `pnpm dlx --package=@nexus_js/cli@latest create-nexus my-app`) — the scaffold lives in `@nexus_js/cli` either way.
6
+
7
+ ## Usage (after `@nexus_js/create-nexus` is published)
8
+
9
+ npm maps **`npm create @scope/name`** to the package **`@scope/create-name`**:
10
+
11
+ ```bash
12
+ npm create @nexus_js/nexus@latest
13
+ ```
14
+
15
+ ```bash
16
+ pnpm create @nexus_js/nexus
17
+ ```
18
+
19
+ ```bash
20
+ yarn create @nexus_js/nexus
21
+ ```
22
+
23
+ With a folder name:
24
+
25
+ ```bash
26
+ npm create @nexus_js/nexus@latest my-app
27
+ ```
28
+
29
+ Direct binary (same as above):
30
+
31
+ ```bash
32
+ npx @nexus_js/create-nexus@latest my-app
33
+ ```
34
+
35
+ Then:
36
+
37
+ ```bash
38
+ cd my-app
39
+ npm install
40
+ npm run dev
41
+ ```
42
+
43
+ The implementation lives in **`@nexus_js/cli`**; this package only wires the **create** entrypoint.
44
+
45
+ ## License
46
+
47
+ MIT © Nexus contributors
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Thin entry so `npm create @nexus_js/nexus` / `npx @nexus_js/create-nexus` resolves the
4
+ * official scaffold from @nexus_js/cli (same as the create-nexus binary there).
5
+ */
6
+ import { dirname, join } from 'node:path';
7
+ import { fileURLToPath, pathToFileURL } from 'node:url';
8
+
9
+ const url = import.meta.resolve('@nexus_js/cli');
10
+ const main = fileURLToPath(url);
11
+ const root = dirname(dirname(main));
12
+ await import(pathToFileURL(join(root, 'dist', 'create.js')).href);
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@nexus_js/create-nexus",
3
+ "version": "0.7.1",
4
+ "description": "Create a new Nexus app — npm create @nexus_js/nexus (scoped; avoids unscoped name conflicts on npm)",
5
+ "type": "module",
6
+ "bin": {
7
+ "create-nexus": "./bin/create-nexus.mjs"
8
+ },
9
+ "dependencies": {
10
+ "@nexus_js/cli": "^0.7.1"
11
+ },
12
+ "license": "MIT",
13
+ "homepage": "https://nexusjs.dev",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/bierfor/nexus.git",
17
+ "directory": "packages/create-nexus"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/bierfor/nexus/issues"
21
+ },
22
+ "keywords": [
23
+ "nexus",
24
+ "create-nexus",
25
+ "scaffold",
26
+ "cli",
27
+ "svelte",
28
+ "full-stack"
29
+ ],
30
+ "files": [
31
+ "bin",
32
+ "README.md"
33
+ ],
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "registry": "https://registry.npmjs.org/"
37
+ },
38
+ "engines": {
39
+ "node": ">=20.6.0"
40
+ },
41
+ "scripts": {
42
+ "build": "node -e \"process.exit(0)\"",
43
+ "clean": "node -e \"process.exit(0)\""
44
+ }
45
+ }