crumbtrail 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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- export { B as BuildPlanInput, a as BuildPlanOptions, c as DENO_UNSUPPORTED_REASON, d as DOCKER_COMING_SOON_NOTE, D as DetectResult, E as EnvAction, f as ExecuteOptions, g as ExecuteResult, h as ExecutorIO, G as GitTargetStatus, I as InjectIO, P as PackageManager, i as Plan, j as PlanKind, R as Recipe, W as WorkspacePackage, b as buildPlan, k as defaultExecutorIO, l as defaultInjectIO, m as detect, n as detectPackageManager, e as executePlan, o as matchRecipe, p as parseNodeInvocation, q as parsePnpmWorkspace, r as projectAlreadyWired, s as resolveAngularEntry, t as resolveNestEntry, u as resolveOtlpStack, v as resolveReactNativeEntry, w as resolveRemixEntry, x as resolveViteEntry, y as supportsInstrumentationClient } from './executor-DKDrkhxM.cjs';
2
- import 'crumbtrail-design-system';
1
+ export { B as BuildPlanInput, a as BuildPlanOptions, c as DENO_UNSUPPORTED_REASON, d as DOCKER_COMING_SOON_NOTE, D as DetectResult, E as EnvAction, f as ExecuteOptions, g as ExecuteResult, h as ExecutorIO, G as GitTargetStatus, I as InjectIO, P as PackageManager, i as Plan, j as PlanKind, R as Recipe, W as WorkspacePackage, b as buildPlan, k as defaultExecutorIO, l as defaultInjectIO, m as detect, n as detectPackageManager, e as executePlan, o as matchRecipe, p as parseNodeInvocation, q as parsePnpmWorkspace, r as projectAlreadyWired, s as resolveAngularEntry, t as resolveNestEntry, u as resolveOtlpStack, v as resolveReactNativeEntry, w as resolveRemixEntry, x as resolveViteEntry, y as supportsInstrumentationClient } from './executor-CW6Q5mhH.cjs';
2
+ import 'crumbtrail-core';
3
3
 
4
4
  interface SourceShape {
5
5
  /** "" or the UTF-8 BOM if the source started with one. */
@@ -55,6 +55,17 @@ declare function nuxtPluginSnippet(endpoint: string, apiKey: string): string;
55
55
  * crumbtrail-node's README).
56
56
  */
57
57
  declare function nodeInitSnippet(endpoint: string): string;
58
+ /**
59
+ * NestJS server init. Byte-for-byte the same wiring as `nodeInitSnippet` — a
60
+ * dynamically-imported `autoCapture` prepended into `src/main.ts` — but emitted
61
+ * with SINGLE quotes to match Nest scaffolds' Prettier default
62
+ * (`singleQuote: true`). Nest is the only backend-JS recipe that gets its own
63
+ * snippet: its generator ships a `.prettierrc` with single quotes, so the
64
+ * double-quoted `nodeInitSnippet` produces cosmetic diff/lint noise on the very
65
+ * first commit. Every other backend-JS recipe (express/hono/fastify/node) keeps
66
+ * the double-quoted snippet, which matches Prettier's own default.
67
+ */
68
+ declare function nestInitSnippet(endpoint: string): string;
58
69
  /**
59
70
  * React Native / Expo init block. Imperative + prepend-safe: it calls
60
71
  * `createReactNativeCrumbtrail` (which runs `Crumbtrail.init` and installs the
@@ -75,4 +86,4 @@ declare function tauriInitSnippet(): string;
75
86
  /** The single line the CLI writes into `.env` for the Node recipe. */
76
87
  declare function envKeyLine(apiKey: string): string;
77
88
 
78
- export { type SourceShape, analyzeSource, clientInitSnippet, envKeyLine, nodeInitSnippet, nuxtPluginSnippet, prependIntoSource, prologueEnd, reactNativeInitSnippet, referencesCrumbtrail, tauriInitSnippet, withTrailingNewline };
89
+ export { type SourceShape, analyzeSource, clientInitSnippet, envKeyLine, nestInitSnippet, nodeInitSnippet, nuxtPluginSnippet, prependIntoSource, prologueEnd, reactNativeInitSnippet, referencesCrumbtrail, tauriInitSnippet, withTrailingNewline };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { B as BuildPlanInput, a as BuildPlanOptions, c as DENO_UNSUPPORTED_REASON, d as DOCKER_COMING_SOON_NOTE, D as DetectResult, E as EnvAction, f as ExecuteOptions, g as ExecuteResult, h as ExecutorIO, G as GitTargetStatus, I as InjectIO, P as PackageManager, i as Plan, j as PlanKind, R as Recipe, W as WorkspacePackage, b as buildPlan, k as defaultExecutorIO, l as defaultInjectIO, m as detect, n as detectPackageManager, e as executePlan, o as matchRecipe, p as parseNodeInvocation, q as parsePnpmWorkspace, r as projectAlreadyWired, s as resolveAngularEntry, t as resolveNestEntry, u as resolveOtlpStack, v as resolveReactNativeEntry, w as resolveRemixEntry, x as resolveViteEntry, y as supportsInstrumentationClient } from './executor-DKDrkhxM.js';
2
- import 'crumbtrail-design-system';
1
+ export { B as BuildPlanInput, a as BuildPlanOptions, c as DENO_UNSUPPORTED_REASON, d as DOCKER_COMING_SOON_NOTE, D as DetectResult, E as EnvAction, f as ExecuteOptions, g as ExecuteResult, h as ExecutorIO, G as GitTargetStatus, I as InjectIO, P as PackageManager, i as Plan, j as PlanKind, R as Recipe, W as WorkspacePackage, b as buildPlan, k as defaultExecutorIO, l as defaultInjectIO, m as detect, n as detectPackageManager, e as executePlan, o as matchRecipe, p as parseNodeInvocation, q as parsePnpmWorkspace, r as projectAlreadyWired, s as resolveAngularEntry, t as resolveNestEntry, u as resolveOtlpStack, v as resolveReactNativeEntry, w as resolveRemixEntry, x as resolveViteEntry, y as supportsInstrumentationClient } from './executor-CW6Q5mhH.js';
2
+ import 'crumbtrail-core';
3
3
 
4
4
  interface SourceShape {
5
5
  /** "" or the UTF-8 BOM if the source started with one. */
@@ -55,6 +55,17 @@ declare function nuxtPluginSnippet(endpoint: string, apiKey: string): string;
55
55
  * crumbtrail-node's README).
56
56
  */
57
57
  declare function nodeInitSnippet(endpoint: string): string;
58
+ /**
59
+ * NestJS server init. Byte-for-byte the same wiring as `nodeInitSnippet` — a
60
+ * dynamically-imported `autoCapture` prepended into `src/main.ts` — but emitted
61
+ * with SINGLE quotes to match Nest scaffolds' Prettier default
62
+ * (`singleQuote: true`). Nest is the only backend-JS recipe that gets its own
63
+ * snippet: its generator ships a `.prettierrc` with single quotes, so the
64
+ * double-quoted `nodeInitSnippet` produces cosmetic diff/lint noise on the very
65
+ * first commit. Every other backend-JS recipe (express/hono/fastify/node) keeps
66
+ * the double-quoted snippet, which matches Prettier's own default.
67
+ */
68
+ declare function nestInitSnippet(endpoint: string): string;
58
69
  /**
59
70
  * React Native / Expo init block. Imperative + prepend-safe: it calls
60
71
  * `createReactNativeCrumbtrail` (which runs `Crumbtrail.init` and installs the
@@ -75,4 +86,4 @@ declare function tauriInitSnippet(): string;
75
86
  /** The single line the CLI writes into `.env` for the Node recipe. */
76
87
  declare function envKeyLine(apiKey: string): string;
77
88
 
78
- export { type SourceShape, analyzeSource, clientInitSnippet, envKeyLine, nodeInitSnippet, nuxtPluginSnippet, prependIntoSource, prologueEnd, reactNativeInitSnippet, referencesCrumbtrail, tauriInitSnippet, withTrailingNewline };
89
+ export { type SourceShape, analyzeSource, clientInitSnippet, envKeyLine, nestInitSnippet, nodeInitSnippet, nuxtPluginSnippet, prependIntoSource, prologueEnd, reactNativeInitSnippet, referencesCrumbtrail, tauriInitSnippet, withTrailingNewline };
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ import {
11
11
  envKeyLine,
12
12
  executePlan,
13
13
  matchRecipe,
14
+ nestInitSnippet,
14
15
  nodeInitSnippet,
15
16
  nuxtPluginSnippet,
16
17
  parseNodeInvocation,
@@ -29,7 +30,7 @@ import {
29
30
  supportsInstrumentationClient,
30
31
  tauriInitSnippet,
31
32
  withTrailingNewline
32
- } from "./chunk-UFJ2BODB.js";
33
+ } from "./chunk-MZDASWQ7.js";
33
34
  export {
34
35
  DENO_UNSUPPORTED_REASON,
35
36
  DOCKER_COMING_SOON_NOTE,
@@ -43,6 +44,7 @@ export {
43
44
  envKeyLine,
44
45
  executePlan,
45
46
  matchRecipe,
47
+ nestInitSnippet,
46
48
  nodeInitSnippet,
47
49
  nuxtPluginSnippet,
48
50
  parseNodeInvocation,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "crumbtrail",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Crumbtrail setup CLI — detect your framework and wire the SDK into your app in one step.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/oshabana/crumbtrail.git",
8
+ "url": "git+https://github.com/crumbtrail-dev/crumbtrail-js.git",
9
9
  "directory": "packages/cli"
10
10
  },
11
11
  "keywords": [
@@ -39,6 +39,15 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
+ "devDependencies": {
43
+ "@types/node": "^25.5.0",
44
+ "crumbtrail-core": "^0.2.0",
45
+ "crumbtrail-install-shared": "^0.2.0"
46
+ },
47
+ "homepage": "https://github.com/crumbtrail-dev/crumbtrail-js/tree/main/packages/cli#readme",
48
+ "bugs": {
49
+ "url": "https://github.com/crumbtrail-dev/crumbtrail-js/issues"
50
+ },
42
51
  "scripts": {
43
52
  "build": "tsup",
44
53
  "test": "vitest run",
@@ -46,10 +55,5 @@
46
55
  "test:watch": "vitest",
47
56
  "typecheck": "tsc --noEmit -p tsconfig.json",
48
57
  "clean": "rm -rf dist"
49
- },
50
- "devDependencies": {
51
- "@types/node": "^25.5.0",
52
- "crumbtrail-design-system": "workspace:*",
53
- "crumbtrail-install-shared": "workspace:*"
54
58
  }
55
- }
59
+ }