@fluojs/cli 1.1.0 → 3.0.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.ko.md +183 -22
- package/README.md +186 -22
- package/dist/cli.d.ts +5 -4
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +128 -35
- package/dist/commands/diagnostics.d.ts +35 -0
- package/dist/commands/diagnostics.d.ts.map +1 -1
- package/dist/commands/diagnostics.js +60 -0
- package/dist/commands/generate.d.ts +1 -49
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +1 -214
- package/dist/commands/inspect.d.ts +5 -7
- package/dist/commands/inspect.d.ts.map +1 -1
- package/dist/commands/inspect.js +85 -65
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +27 -15
- package/dist/commands/migration-transform-tokens.d.ts +15 -0
- package/dist/commands/migration-transform-tokens.d.ts.map +1 -0
- package/dist/commands/migration-transform-tokens.js +41 -0
- package/dist/commands/new.d.ts +0 -6
- package/dist/commands/new.d.ts.map +1 -1
- package/dist/commands/new.js +42 -96
- package/dist/commands/output-path-safety.d.ts +14 -0
- package/dist/commands/output-path-safety.d.ts.map +1 -0
- package/dist/commands/output-path-safety.js +34 -0
- package/dist/commands/scripts.d.ts +1 -1
- package/dist/commands/scripts.d.ts.map +1 -1
- package/dist/commands/scripts.js +13 -7
- package/dist/commands/typegen-artifact.d.ts +54 -0
- package/dist/commands/typegen-artifact.d.ts.map +1 -0
- package/dist/commands/typegen-artifact.js +117 -0
- package/dist/commands/typegen-generation-child.d.ts +2 -0
- package/dist/commands/typegen-generation-child.d.ts.map +1 -0
- package/dist/commands/typegen-generation-child.js +59 -0
- package/dist/commands/typegen-generation-process.d.ts +46 -0
- package/dist/commands/typegen-generation-process.d.ts.map +1 -0
- package/dist/commands/typegen-generation-process.js +131 -0
- package/dist/commands/typegen-generation-protocol.d.ts +16 -0
- package/dist/commands/typegen-generation-protocol.d.ts.map +1 -0
- package/dist/commands/typegen-generation-protocol.js +35 -0
- package/dist/commands/typegen-isolated-source.d.ts +10 -0
- package/dist/commands/typegen-isolated-source.d.ts.map +1 -0
- package/dist/commands/typegen-isolated-source.js +75 -0
- package/dist/commands/typegen-options.d.ts +20 -0
- package/dist/commands/typegen-options.d.ts.map +1 -0
- package/dist/commands/typegen-options.js +71 -0
- package/dist/commands/typegen-source.d.ts +59 -0
- package/dist/commands/typegen-source.d.ts.map +1 -0
- package/dist/commands/typegen-source.js +183 -0
- package/dist/commands/typegen-watch.d.ts +46 -0
- package/dist/commands/typegen-watch.d.ts.map +1 -0
- package/dist/commands/typegen-watch.js +212 -0
- package/dist/commands/typegen.d.ts +29 -0
- package/dist/commands/typegen.d.ts.map +1 -0
- package/dist/commands/typegen.js +119 -0
- package/dist/dev-runner/node-restart-runner.d.ts +6 -0
- package/dist/dev-runner/node-restart-runner.d.ts.map +1 -1
- package/dist/dev-runner/node-restart-runner.js +64 -13
- package/dist/fixtures/inspect-react-app.module.d.ts +4 -0
- package/dist/fixtures/inspect-react-app.module.d.ts.map +1 -0
- package/dist/fixtures/inspect-react-app.module.js +32 -0
- package/dist/fixtures/typegen-react-app.module.d.ts +4 -0
- package/dist/fixtures/typegen-react-app.module.d.ts.map +1 -0
- package/dist/fixtures/typegen-react-app.module.js +33 -0
- package/dist/generate-command.d.ts +50 -0
- package/dist/generate-command.d.ts.map +1 -0
- package/dist/generate-command.js +214 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/new/install.js +1 -1
- package/dist/new/package-spec-resolver.d.ts.map +1 -1
- package/dist/new/package-spec-resolver.js +50 -59
- package/dist/new/prompt.d.ts +1 -0
- package/dist/new/prompt.d.ts.map +1 -1
- package/dist/new/prompt.js +40 -12
- package/dist/new/published-internal-dependencies.d.ts +20 -0
- package/dist/new/published-internal-dependencies.d.ts.map +1 -0
- package/dist/new/published-internal-dependencies.js +20 -0
- package/dist/new/react-vite-ssr-scaffold.d.ts +19 -0
- package/dist/new/react-vite-ssr-scaffold.d.ts.map +1 -0
- package/dist/new/react-vite-ssr-scaffold.js +108 -0
- package/dist/new/resolver.d.ts +2 -2
- package/dist/new/resolver.d.ts.map +1 -1
- package/dist/new/resolver.js +5 -1
- package/dist/new/scaffold.d.ts.map +1 -1
- package/dist/new/scaffold.js +177 -54
- package/dist/new/starter-profiles.d.ts +8 -4
- package/dist/new/starter-profiles.d.ts.map +1 -1
- package/dist/new/starter-profiles.js +52 -18
- package/dist/new/templates/react-vite-ssr/README.md.ejs +74 -0
- package/dist/new/templates/react-vite-ssr/playwright.config.ts.ejs +26 -0
- package/dist/new/templates/react-vite-ssr/src/app.test.ts.ejs +82 -0
- package/dist/new/templates/react-vite-ssr/src/app.ts.ejs +91 -0
- package/dist/new/templates/react-vite-ssr/src/entry-client.tsx.ejs +29 -0
- package/dist/new/templates/react-vite-ssr/src/entry-server.tsx.ejs +52 -0
- package/dist/new/templates/react-vite-ssr/src/load-manifest.test.ts.ejs +55 -0
- package/dist/new/templates/react-vite-ssr/src/load-manifest.ts.ejs +53 -0
- package/dist/new/templates/react-vite-ssr/src/main.ts.ejs +18 -0
- package/dist/new/templates/react-vite-ssr/src/page.tsx.ejs +43 -0
- package/dist/new/templates/react-vite-ssr/src/react-app.test.tsx.ejs +67 -0
- package/dist/new/templates/react-vite-ssr/src/react-app.tsx.ejs +46 -0
- package/dist/new/templates/react-vite-ssr/src/styles.css.ejs +25 -0
- package/dist/new/templates/react-vite-ssr/src/styles.d.ts.ejs +1 -0
- package/dist/new/templates/react-vite-ssr/tests/production-hydration.spec.ts.ejs +54 -0
- package/dist/new/templates/react-vite-ssr/tsconfig.json.ejs +16 -0
- package/dist/new/templates/react-vite-ssr/vite.client.config.ts.ejs +24 -0
- package/dist/new/templates/react-vite-ssr/vite.server.config.ts.ejs +17 -0
- package/dist/new/templates/react-vite-ssr/vitest.config.ts.ejs +10 -0
- package/dist/new/types.d.ts +4 -2
- package/dist/new/types.d.ts.map +1 -1
- package/dist/public-generate.d.ts +2 -0
- package/dist/public-generate.d.ts.map +1 -0
- package/dist/public-generate.js +1 -0
- package/dist/public-inspect.d.ts +13 -0
- package/dist/public-inspect.d.ts.map +1 -0
- package/dist/public-inspect.js +16 -0
- package/dist/public-new.d.ts +13 -0
- package/dist/public-new.d.ts.map +1 -0
- package/dist/public-new.js +16 -0
- package/dist/public-typegen.d.ts +14 -0
- package/dist/public-typegen.d.ts.map +1 -0
- package/dist/public-typegen.js +17 -0
- package/dist/run-cli.d.ts +2 -1
- package/dist/run-cli.d.ts.map +1 -1
- package/dist/studio/sidecar.d.ts.map +1 -1
- package/dist/studio/sidecar.js +106 -14
- package/dist/transforms/nestjs-migrate.d.ts +4 -1
- package/dist/transforms/nestjs-migrate.d.ts.map +1 -1
- package/dist/transforms/nestjs-migrate.js +625 -65
- package/dist/typegen-contract.d.ts +10 -0
- package/dist/typegen-contract.d.ts.map +1 -0
- package/dist/typegen-contract.js +9 -0
- package/dist/usage.d.ts +19 -0
- package/dist/usage.d.ts.map +1 -0
- package/dist/usage.js +178 -0
- package/package.json +19 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Stable process exit codes returned by `fluo typegen`. */
|
|
2
|
+
export declare const TYPEGEN_EXIT_CODES: {
|
|
3
|
+
readonly ERROR: 1;
|
|
4
|
+
readonly MALFORMED: 4;
|
|
5
|
+
readonly MISSING: 2;
|
|
6
|
+
readonly STALE: 3;
|
|
7
|
+
readonly SUCCESS: 0;
|
|
8
|
+
readonly UNSUPPORTED_VERSION: 5;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=typegen-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typegen-contract.d.ts","sourceRoot":"","sources":["../src/typegen-contract.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC"}
|
package/dist/usage.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders CLI help text for `fluo new` without importing the scaffold implementation.
|
|
3
|
+
*
|
|
4
|
+
* @returns Stable help output for the scaffolding command.
|
|
5
|
+
*/
|
|
6
|
+
export declare function newUsage(): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the usage information string for the inspect command without importing runtime inspection logic.
|
|
9
|
+
*
|
|
10
|
+
* @returns Formatted help text including usage and options.
|
|
11
|
+
*/
|
|
12
|
+
export declare function inspectUsage(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the usage information string for React page type generation.
|
|
15
|
+
*
|
|
16
|
+
* @returns Formatted help text including required output and optional export arguments.
|
|
17
|
+
*/
|
|
18
|
+
export declare function typegenUsage(): string;
|
|
19
|
+
//# sourceMappingURL=usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":"AAuKA;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,MAAM,CA0BjC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAarC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAarC"}
|
package/dist/usage.js
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { renderAliasList, renderHelpTable } from './help.js';
|
|
2
|
+
const NEW_OPTION_HELP = [{
|
|
3
|
+
aliases: [],
|
|
4
|
+
description: 'Select a named starter (standard backend or the React SSR + Vite application).',
|
|
5
|
+
option: '--starter <standard|react-vite-ssr>'
|
|
6
|
+
}, {
|
|
7
|
+
aliases: [],
|
|
8
|
+
description: 'Provide the project name without using the positional argument.',
|
|
9
|
+
option: '--name <project-name>'
|
|
10
|
+
}, {
|
|
11
|
+
aliases: [],
|
|
12
|
+
description: 'Select the scaffold shape explicitly (application for HTTP, microservice for the transport-driven starter path, mixed for the API + microservice starter).',
|
|
13
|
+
option: '--shape <application|microservice|mixed>'
|
|
14
|
+
}, {
|
|
15
|
+
aliases: [],
|
|
16
|
+
description: 'Select the transport path explicitly (http for applications, tcp for the runnable microservice starter, plus shipped microservice starter transports).',
|
|
17
|
+
option: '--transport <http|tcp|redis-streams|nats|kafka|rabbitmq|mqtt|grpc>'
|
|
18
|
+
}, {
|
|
19
|
+
aliases: [],
|
|
20
|
+
description: 'Select the runtime explicitly (node, bun, deno, or cloudflare-workers for application starters; node for microservice and mixed starters).',
|
|
21
|
+
option: '--runtime <node|bun|deno|cloudflare-workers>'
|
|
22
|
+
}, {
|
|
23
|
+
aliases: [],
|
|
24
|
+
description: 'Select the platform adapter explicitly (fastify, express, or nodejs on node; bun/deno/cloudflare-workers on their native runtimes; none for microservices).',
|
|
25
|
+
option: '--platform <fastify|express|nodejs|bun|deno|cloudflare-workers|none>'
|
|
26
|
+
}, {
|
|
27
|
+
aliases: [],
|
|
28
|
+
description: 'Select the starter tooling preset explicitly (currently only standard).',
|
|
29
|
+
option: '--tooling <standard>'
|
|
30
|
+
}, {
|
|
31
|
+
aliases: [],
|
|
32
|
+
description: 'Select the starter topology mode explicitly (currently only single-package).',
|
|
33
|
+
option: '--topology <single-package>'
|
|
34
|
+
}, {
|
|
35
|
+
aliases: [],
|
|
36
|
+
description: 'Choose which package manager installs the starter dependencies.',
|
|
37
|
+
option: '--package-manager <pnpm|npm|yarn|bun>'
|
|
38
|
+
}, {
|
|
39
|
+
aliases: [],
|
|
40
|
+
description: 'Write the new app to a custom target directory (always overrides positional name path).',
|
|
41
|
+
option: '--target-directory <path>'
|
|
42
|
+
}, {
|
|
43
|
+
aliases: [],
|
|
44
|
+
description: 'Overwrite files in a non-empty target directory without prompting.',
|
|
45
|
+
option: '--force'
|
|
46
|
+
}, {
|
|
47
|
+
aliases: [],
|
|
48
|
+
description: 'Install starter dependencies after writing files.',
|
|
49
|
+
option: '--install'
|
|
50
|
+
}, {
|
|
51
|
+
aliases: [],
|
|
52
|
+
description: 'Skip starter dependency installation.',
|
|
53
|
+
option: '--no-install'
|
|
54
|
+
}, {
|
|
55
|
+
aliases: [],
|
|
56
|
+
description: 'Initialize a git repository in the generated starter.',
|
|
57
|
+
option: '--git'
|
|
58
|
+
}, {
|
|
59
|
+
aliases: [],
|
|
60
|
+
description: 'Skip git repository initialization in the generated starter.',
|
|
61
|
+
option: '--no-git'
|
|
62
|
+
}, {
|
|
63
|
+
aliases: [],
|
|
64
|
+
description: 'Print the resolved scaffold plan without writing files, installing dependencies, or initializing git.',
|
|
65
|
+
option: '--print-plan'
|
|
66
|
+
}, {
|
|
67
|
+
aliases: ['-h'],
|
|
68
|
+
description: 'Show help for the new command.',
|
|
69
|
+
option: '--help'
|
|
70
|
+
}];
|
|
71
|
+
const INSPECT_OPTION_HELP = [{
|
|
72
|
+
aliases: [],
|
|
73
|
+
description: 'Emit the runtime platform snapshot/diagnostics payload as JSON (default when no output mode is selected).',
|
|
74
|
+
option: '--json'
|
|
75
|
+
}, {
|
|
76
|
+
aliases: [],
|
|
77
|
+
description: 'Select JSON output explicitly; equivalent to --json.',
|
|
78
|
+
option: '--format <json>'
|
|
79
|
+
}, {
|
|
80
|
+
aliases: [],
|
|
81
|
+
description: 'Emit a Mermaid graph through the optional @fluojs/studio rendering contract.',
|
|
82
|
+
option: '--mermaid'
|
|
83
|
+
}, {
|
|
84
|
+
aliases: [],
|
|
85
|
+
description: 'Include bootstrap timing diagnostics next to JSON inspect output.',
|
|
86
|
+
option: '--timing'
|
|
87
|
+
}, {
|
|
88
|
+
aliases: [],
|
|
89
|
+
description: 'Emit a CI-friendly JSON report with summary, snapshot, diagnostics, and timing.',
|
|
90
|
+
option: '--report'
|
|
91
|
+
}, {
|
|
92
|
+
aliases: [],
|
|
93
|
+
description: 'Write the selected inspect payload to a file instead of stdout.',
|
|
94
|
+
option: '--output <path>'
|
|
95
|
+
}, {
|
|
96
|
+
aliases: [],
|
|
97
|
+
description: 'Select the exported module symbol name (default: AppModule).',
|
|
98
|
+
option: '--export <name>'
|
|
99
|
+
}, {
|
|
100
|
+
aliases: ['-h'],
|
|
101
|
+
description: 'Show help for the inspect command.',
|
|
102
|
+
option: '--help'
|
|
103
|
+
}];
|
|
104
|
+
const TYPEGEN_OPTION_HELP = [{
|
|
105
|
+
aliases: [],
|
|
106
|
+
description: 'Check that the target exactly matches the compiled React page catalog without writing it.',
|
|
107
|
+
option: '--check'
|
|
108
|
+
}, {
|
|
109
|
+
aliases: [],
|
|
110
|
+
description: 'Write the generated React page route types to this file.',
|
|
111
|
+
option: '--output <path>'
|
|
112
|
+
}, {
|
|
113
|
+
aliases: [],
|
|
114
|
+
description: 'Select the exported module symbol name (default: AppModule).',
|
|
115
|
+
option: '--export <name>'
|
|
116
|
+
}, {
|
|
117
|
+
aliases: [],
|
|
118
|
+
description: 'Regenerate after coalesced changes under the application module directory.',
|
|
119
|
+
option: '--watch'
|
|
120
|
+
}, {
|
|
121
|
+
aliases: ['-h'],
|
|
122
|
+
description: 'Show help for the typegen command.',
|
|
123
|
+
option: '--help'
|
|
124
|
+
}];
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Renders CLI help text for `fluo new` without importing the scaffold implementation.
|
|
128
|
+
*
|
|
129
|
+
* @returns Stable help output for the scaffolding command.
|
|
130
|
+
*/
|
|
131
|
+
export function newUsage() {
|
|
132
|
+
return ['Usage: fluo new|create [project-name] [options]', '', 'Options', renderHelpTable(NEW_OPTION_HELP, [{
|
|
133
|
+
header: 'Option',
|
|
134
|
+
render: entry => entry.option
|
|
135
|
+
}, {
|
|
136
|
+
header: 'Aliases',
|
|
137
|
+
render: entry => renderAliasList(entry.aliases)
|
|
138
|
+
}, {
|
|
139
|
+
header: 'Description',
|
|
140
|
+
render: entry => entry.description
|
|
141
|
+
}]), '', 'Next steps:', ' cd <app-name>', ' pnpm dev # runs fluo dev from the generated package.json script', '', 'Docs: https://github.com/fluojs/fluo/tree/main/docs/getting-started/quick-start.md'].join('\n');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Returns the usage information string for the inspect command without importing runtime inspection logic.
|
|
146
|
+
*
|
|
147
|
+
* @returns Formatted help text including usage and options.
|
|
148
|
+
*/
|
|
149
|
+
export function inspectUsage() {
|
|
150
|
+
return ['Usage: fluo inspect <module-path> [options]', '', 'Options', renderHelpTable(INSPECT_OPTION_HELP, [{
|
|
151
|
+
header: 'Option',
|
|
152
|
+
render: entry => entry.option
|
|
153
|
+
}, {
|
|
154
|
+
header: 'Aliases',
|
|
155
|
+
render: entry => renderAliasList(entry.aliases)
|
|
156
|
+
}, {
|
|
157
|
+
header: 'Description',
|
|
158
|
+
render: entry => entry.description
|
|
159
|
+
}]), '', 'Docs: https://github.com/fluojs/fluo/tree/main/docs/getting-started/quick-start.md'].join('\n');
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Returns the usage information string for React page type generation.
|
|
164
|
+
*
|
|
165
|
+
* @returns Formatted help text including required output and optional export arguments.
|
|
166
|
+
*/
|
|
167
|
+
export function typegenUsage() {
|
|
168
|
+
return ['Usage: fluo typegen <module-path> --output <path> [options]', '', 'Options', renderHelpTable(TYPEGEN_OPTION_HELP, [{
|
|
169
|
+
header: 'Option',
|
|
170
|
+
render: entry => entry.option
|
|
171
|
+
}, {
|
|
172
|
+
header: 'Aliases',
|
|
173
|
+
render: entry => renderAliasList(entry.aliases)
|
|
174
|
+
}, {
|
|
175
|
+
header: 'Description',
|
|
176
|
+
render: entry => entry.description
|
|
177
|
+
}]), '', 'Docs: https://github.com/fluojs/fluo/tree/main/packages/react#path-only-page-type-generation'].join('\n');
|
|
178
|
+
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"migration",
|
|
10
10
|
"diagnostics"
|
|
11
11
|
],
|
|
12
|
-
"version": "
|
|
12
|
+
"version": "3.0.0",
|
|
13
13
|
"private": false,
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"directory": "packages/cli"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=24.0.0 <27"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
@@ -40,27 +40,36 @@
|
|
|
40
40
|
"bin"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@clack/prompts": "^1.2.0",
|
|
44
43
|
"ejs": "^3.1.10",
|
|
45
|
-
"tsx": "^4.
|
|
46
|
-
"typescript": "^6.0.2"
|
|
47
|
-
"@fluojs/runtime": "^1.1.8"
|
|
44
|
+
"tsx": "^4.23.1",
|
|
45
|
+
"typescript": "^6.0.2"
|
|
48
46
|
},
|
|
49
47
|
"peerDependencies": {
|
|
50
|
-
"@
|
|
48
|
+
"@clack/prompts": "^1.3.0",
|
|
49
|
+
"@fluojs/runtime": "^3.0.0",
|
|
50
|
+
"@fluojs/studio": "^2.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
|
+
"@clack/prompts": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"@fluojs/runtime": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
53
59
|
"@fluojs/studio": {
|
|
54
60
|
"optional": true
|
|
55
61
|
}
|
|
56
62
|
},
|
|
57
63
|
"devDependencies": {
|
|
64
|
+
"@clack/prompts": "^1.7.0",
|
|
58
65
|
"@types/ejs": "^3.1.5",
|
|
59
|
-
"vitest": "^
|
|
66
|
+
"vitest": "^4.1.11",
|
|
67
|
+
"@fluojs/react": "^0.2.0",
|
|
68
|
+
"@fluojs/runtime": "^3.0.0"
|
|
60
69
|
},
|
|
61
70
|
"scripts": {
|
|
62
|
-
"prebuild": "node ../../tooling/scripts/clean-dist.mjs",
|
|
63
|
-
"build": "pnpm exec babel src --extensions .ts --ignore 'src/**/*.test.ts' --out-dir dist --config-file ../../tooling/babel/babel.config.cjs && pnpm exec tsc -p tsconfig.build.json && node -e \"require('fs').cpSync('src/generators/templates', 'dist/generators/templates', {recursive: true})\"",
|
|
71
|
+
"prebuild": "node ./scripts/generate-published-internal-dependencies.mjs && node ../../tooling/scripts/clean-dist.mjs",
|
|
72
|
+
"build": "pnpm exec babel src --extensions .ts --ignore 'src/**/*.test.ts' --out-dir dist --config-file ../../tooling/babel/babel.config.cjs && pnpm exec tsc -p tsconfig.build.json && node -e \"const fs=require('fs'); fs.cpSync('src/generators/templates', 'dist/generators/templates', {recursive: true}); fs.cpSync('src/new/templates', 'dist/new/templates', {recursive: true})\"",
|
|
64
73
|
"typecheck": "pnpm exec tsc -p tsconfig.json --noEmit",
|
|
65
74
|
"test": "pnpm exec vitest run -c vitest.config.ts",
|
|
66
75
|
"test:watch": "pnpm exec vitest -c vitest.config.ts",
|