@nimbus-sh/cli 0.1.11 → 0.2.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/README.md CHANGED
@@ -5,6 +5,8 @@ runtime cache.
5
5
 
6
6
  ## Install
7
7
 
8
+ Requires Node.js 20.10.0 or later for JSON import attributes.
9
+
8
10
  ```bash
9
11
  npx @nimbus-sh/cli --help
10
12
  npx @nimbus-sh/cli init my-app
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuF9D"}
1
+ {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuF9D"}
@@ -17,6 +17,7 @@
17
17
  */
18
18
  import { mkdirSync, writeFileSync, existsSync } from 'node:fs';
19
19
  import { resolve, join, basename, relative } from 'node:path';
20
+ import manifest from '@nimbus-sh/cli/package.json' with { type: 'json' };
20
21
  /**
21
22
  * Scaffold a new Nimbus project at the given directory.
22
23
  *
@@ -125,9 +126,9 @@ function renderPackageJson(name) {
125
126
  typecheck: 'tsc --noEmit',
126
127
  },
127
128
  dependencies: {
128
- '@nimbus-sh/config': '^0.1.4',
129
- '@nimbus-sh/worker': '^0.2.0',
130
- '@nimbus-sh/sdk': '^0.2.0',
129
+ '@nimbus-sh/config': manifest.dependencies['@nimbus-sh/config'],
130
+ '@nimbus-sh/worker': manifest.dependencies['@nimbus-sh/worker'],
131
+ '@nimbus-sh/sdk': manifest.dependencies['@nimbus-sh/sdk'],
131
132
  },
132
133
  devDependencies: {
133
134
  '@cloudflare/workers-types': '^4.20250327.0',
@@ -197,6 +198,7 @@ function renderWranglerJsonc(name) {
197
198
  function renderIndexTs() {
198
199
  return `import {
199
200
  NimbusSession,
201
+ NimbusPublicDirectory,
200
202
  SupervisorRPC,
201
203
  NimbusAssetsRPC,
202
204
  NimbusLoaderRPC,
package/dist/version.d.ts CHANGED
@@ -1,7 +1,2 @@
1
- /**
2
- * Hardcoded version constant. Updated by release tooling. We avoid
3
- * `require('./package.json')` because that breaks under bun's
4
- * single-file binary mode.
5
- */
6
- export declare const CLI_VERSION = "0.1.8";
1
+ export declare const CLI_VERSION: string;
7
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QAAmB,CAAC"}
package/dist/version.js CHANGED
@@ -1,6 +1,2 @@
1
- /**
2
- * Hardcoded version constant. Updated by release tooling. We avoid
3
- * `require('./package.json')` because that breaks under bun's
4
- * single-file binary mode.
5
- */
6
- export const CLI_VERSION = '0.1.8';
1
+ import manifest from '@nimbus-sh/cli/package.json' with { type: 'json' };
2
+ export const CLI_VERSION = manifest.version;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nimbus-sh/cli",
3
- "version": "0.1.11",
4
- "description": "Nimbus CLI — `create-nimbus-app` scaffolder + `token mint` + `runtime sync`.",
3
+ "version": "0.2.0",
4
+ "description": "Nimbus CLI \u2014 `create-nimbus-app` scaffolder + `token mint` + `runtime sync`.",
5
5
  "keywords": [
6
6
  "cloudflare",
7
7
  "workers",
@@ -40,16 +40,17 @@
40
40
  "NOTICE.md"
41
41
  ],
42
42
  "scripts": {
43
- "build": "tsc -p tsconfig.json --noCheck --noEmit false --declaration true --declarationMap true --outDir dist --rootDir src && chmod +x dist/bin.js dist/scaffold-bin.js",
44
- "prepack": "bun run build",
43
+ "build": "node ../../scripts/clean-dist.mjs && tsc -p tsconfig.json --noCheck --noEmit false --declaration true --declarationMap true --outDir dist --rootDir src && chmod +x dist/bin.js dist/scaffold-bin.js",
44
+ "prepublishOnly": "bun ../../scripts/dist-integrity.mjs --publish",
45
45
  "typecheck": "tsc --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "@nimbus-sh/sdk": "^0.8.0",
49
- "@nimbus-sh/worker": "^0.9.0"
48
+ "@nimbus-sh/config": "^0.2.2",
49
+ "@nimbus-sh/sdk": "^0.9.0",
50
+ "@nimbus-sh/worker": "^0.11.0"
50
51
  },
51
52
  "engines": {
52
- "node": ">=20"
53
+ "node": ">=20.10.0"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@types/node": "^22.0.0",