cnippet-stack 0.1.0 → 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/dist/index.js +14 -10
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5930,6 +5930,13 @@ var require_lib = __commonJS({
|
|
|
5930
5930
|
import { Command } from "commander";
|
|
5931
5931
|
import pc7 from "picocolors";
|
|
5932
5932
|
|
|
5933
|
+
// src/commands/doctor.ts
|
|
5934
|
+
function runDoctor(recipe) {
|
|
5935
|
+
console.log(
|
|
5936
|
+
`\`cnippet-stack doctor ${recipe}\` isn't implemented yet \u2014 post-install verification lands in Phase 7.`
|
|
5937
|
+
);
|
|
5938
|
+
}
|
|
5939
|
+
|
|
5933
5940
|
// src/commands/init.ts
|
|
5934
5941
|
import * as clack2 from "@clack/prompts";
|
|
5935
5942
|
import pc2 from "picocolors";
|
|
@@ -11536,13 +11543,6 @@ async function runInit(options) {
|
|
|
11536
11543
|
return { applied: true, preview, recipeVersion: plan.manifest.version, result };
|
|
11537
11544
|
}
|
|
11538
11545
|
|
|
11539
|
-
// src/commands/doctor.ts
|
|
11540
|
-
function runDoctor(recipe) {
|
|
11541
|
-
console.log(
|
|
11542
|
-
`\`cnippet-stack doctor ${recipe}\` isn't implemented yet \u2014 post-install verification lands in Phase 7.`
|
|
11543
|
-
);
|
|
11544
|
-
}
|
|
11545
|
-
|
|
11546
11546
|
// src/commands/list.ts
|
|
11547
11547
|
import pc3 from "picocolors";
|
|
11548
11548
|
async function runList(options = {}) {
|
|
@@ -11672,8 +11672,9 @@ async function runWhoami() {
|
|
|
11672
11672
|
// src/program.ts
|
|
11673
11673
|
function resolveRegistrySource(opts) {
|
|
11674
11674
|
if (opts.localRegistry) return new LocalRegistrySource();
|
|
11675
|
-
|
|
11676
|
-
|
|
11675
|
+
return new HttpRegistrySource(
|
|
11676
|
+
opts.registry ?? process.env.CNIPPET_REGISTRY_URL ?? DEFAULT_REGISTRY_URL
|
|
11677
|
+
);
|
|
11677
11678
|
}
|
|
11678
11679
|
function sendTelemetry(registrySource, event) {
|
|
11679
11680
|
if (process.env.CNIPPET_TELEMETRY === "0") return;
|
|
@@ -11814,7 +11815,10 @@ function createProgram() {
|
|
|
11814
11815
|
false
|
|
11815
11816
|
).action(async (opts) => {
|
|
11816
11817
|
try {
|
|
11817
|
-
await runList({
|
|
11818
|
+
await runList({
|
|
11819
|
+
json: opts.json,
|
|
11820
|
+
registrySource: resolveRegistrySource(opts)
|
|
11821
|
+
});
|
|
11818
11822
|
} catch (error) {
|
|
11819
11823
|
if (error instanceof RegistryHttpError) {
|
|
11820
11824
|
console.error(pc7.red(`\u2716 ${error.message}`));
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"cnippet-stack": "./dist/index.js"
|
|
5
5
|
},
|
|
6
6
|
"bugs": "https://github.com/cnippet-dev/cnippet-stack/issues",
|
|
7
|
-
"description": "CLI that installs full integrations (auth, payments, email, storage) into your existing Next.js app — detection, prompts, safe file injection, env setup.",
|
|
8
7
|
"dependencies": {
|
|
9
8
|
"@clack/prompts": "^0.10.0",
|
|
10
9
|
"commander": "^13.1.0",
|
|
11
10
|
"picocolors": "^1.1.1",
|
|
12
11
|
"ts-morph": "^25.0.1"
|
|
13
12
|
},
|
|
13
|
+
"description": "CLI that installs full integrations (auth, payments, email, storage) into your existing Next.js app — detection, prompts, safe file injection, env setup.",
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@cnippet/registry": "workspace:*",
|
|
16
16
|
"@cnippet/validators": "workspace:*",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"repository": {
|
|
52
|
+
"directory": "packages/cli",
|
|
52
53
|
"type": "git",
|
|
53
|
-
"url": "git+https://github.com/cnippet-dev/cnippet-stack.git"
|
|
54
|
-
"directory": "packages/cli"
|
|
54
|
+
"url": "git+https://github.com/cnippet-dev/cnippet-stack.git"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "tsup",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
},
|
|
63
63
|
"type": "module",
|
|
64
64
|
"types": "./dist/index.d.ts",
|
|
65
|
-
"version": "0.
|
|
65
|
+
"version": "0.2.0"
|
|
66
66
|
}
|