@alloy-js/create 0.6.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/LICENSE +7 -0
- package/babel.config.cjs +7 -0
- package/deps.json +17 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +424 -0
- package/dist/src/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +40 -0
- package/scripts/gen-deps.js +65 -0
- package/src/index.tsx +454 -0
- package/tsconfig.json +17 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2024 Microsoft
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/babel.config.cjs
ADDED
package/deps.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dependencies": [
|
|
3
|
+
{ "package": "@alloy-js/core", "jsx": true, "stc": true },
|
|
4
|
+
{ "package": "@alloy-js/typescript", "jsx": true, "stc": true }
|
|
5
|
+
],
|
|
6
|
+
"devDependencies": [
|
|
7
|
+
{ "package": "@alloy-js/babel-plugin", "jsx": true, "stc": false },
|
|
8
|
+
{ "package": "@babel/cli", "jsx": true, "stc": false },
|
|
9
|
+
{ "package": "@babel/preset-typescript", "jsx": true, "stc": false },
|
|
10
|
+
{ "package": "@rollup/plugin-babel", "jsx": true, "stc": false },
|
|
11
|
+
{ "package": "@rollup/plugin-typescript", "jsx": true, "stc": false },
|
|
12
|
+
{ "package": "@types/node", "jsx": true, "stc": true },
|
|
13
|
+
{ "package": "concurrently", "jsx": true, "stc": false },
|
|
14
|
+
{ "package": "typescript", "jsx": true, "stc": true },
|
|
15
|
+
{ "package": "vitest", "jsx": true, "stc": true }
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import { code, Output, render, Show, SourceDirectory, writeOutput } from "@alloy-js/core";
|
|
4
|
+
import { PackageJsonFile, SourceFile } from "@alloy-js/typescript";
|
|
5
|
+
import fs from "fs";
|
|
6
|
+
import { parseArgs } from "node:util";
|
|
7
|
+
import path from "path";
|
|
8
|
+
import prompts from "prompts";
|
|
9
|
+
const displayHelp = () => {
|
|
10
|
+
console.log(`
|
|
11
|
+
Alloy Project Generator
|
|
12
|
+
|
|
13
|
+
Usage:
|
|
14
|
+
npm init @alloy-js [options]
|
|
15
|
+
|
|
16
|
+
Options:
|
|
17
|
+
-h, --help Show this help message
|
|
18
|
+
-y Use default values without prompting
|
|
19
|
+
--name <name> Package name
|
|
20
|
+
--version <version> Package version
|
|
21
|
+
--description <desc> Package description
|
|
22
|
+
--repository <url> Git repository URL
|
|
23
|
+
--keywords <list> Comma-separated list of keywords
|
|
24
|
+
--author <name> Author name
|
|
25
|
+
--license <license> License type
|
|
26
|
+
--library Create a library project
|
|
27
|
+
--stc Create a project using string template components
|
|
28
|
+
--project Create a general project (default)
|
|
29
|
+
`);
|
|
30
|
+
};
|
|
31
|
+
function parseCommandLineArgs() {
|
|
32
|
+
const {
|
|
33
|
+
values
|
|
34
|
+
} = parseArgs({
|
|
35
|
+
options: {
|
|
36
|
+
h: {
|
|
37
|
+
type: "boolean",
|
|
38
|
+
short: "h"
|
|
39
|
+
},
|
|
40
|
+
help: {
|
|
41
|
+
type: "boolean"
|
|
42
|
+
},
|
|
43
|
+
y: {
|
|
44
|
+
type: "boolean"
|
|
45
|
+
},
|
|
46
|
+
name: {
|
|
47
|
+
type: "string"
|
|
48
|
+
},
|
|
49
|
+
version: {
|
|
50
|
+
type: "string"
|
|
51
|
+
},
|
|
52
|
+
description: {
|
|
53
|
+
type: "string"
|
|
54
|
+
},
|
|
55
|
+
main: {
|
|
56
|
+
type: "string"
|
|
57
|
+
},
|
|
58
|
+
repository: {
|
|
59
|
+
type: "string"
|
|
60
|
+
},
|
|
61
|
+
keywords: {
|
|
62
|
+
type: "string"
|
|
63
|
+
},
|
|
64
|
+
author: {
|
|
65
|
+
type: "string"
|
|
66
|
+
},
|
|
67
|
+
license: {
|
|
68
|
+
type: "string"
|
|
69
|
+
},
|
|
70
|
+
library: {
|
|
71
|
+
type: "boolean"
|
|
72
|
+
},
|
|
73
|
+
project: {
|
|
74
|
+
type: "boolean"
|
|
75
|
+
},
|
|
76
|
+
stc: {
|
|
77
|
+
type: "boolean"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
help: values.h || values.help || false,
|
|
83
|
+
useDefaults: values.y || false,
|
|
84
|
+
name: values.name,
|
|
85
|
+
version: values.version,
|
|
86
|
+
description: values.description,
|
|
87
|
+
repository: values.repository,
|
|
88
|
+
keywords: values.keywords ? values.keywords.split(",").map(k => k.trim()).filter(Boolean) : undefined,
|
|
89
|
+
author: values.author,
|
|
90
|
+
license: values.license,
|
|
91
|
+
type: values.library ? "library" : values.stc ? "stc-project" : values.project ? "project" : "project"
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
const calculatePackageName = () => {
|
|
95
|
+
const cwd = process.cwd();
|
|
96
|
+
const dirName = path.basename(cwd);
|
|
97
|
+
|
|
98
|
+
// Clean up directory name to be a valid package name
|
|
99
|
+
return dirName.toLowerCase().replace(/[^a-z0-9._-]/g, "-").replace(/^[._-]+|[._-]+$/g, "");
|
|
100
|
+
};
|
|
101
|
+
// Function to prompt for package information
|
|
102
|
+
const promptForPackageInfo = async (useDefaults, cmdArgs = {}) => {
|
|
103
|
+
const defaultName = calculatePackageName();
|
|
104
|
+
if (useDefaults) {
|
|
105
|
+
return {
|
|
106
|
+
name: cmdArgs.name || defaultName,
|
|
107
|
+
version: cmdArgs.version || "1.0.0",
|
|
108
|
+
description: cmdArgs.description || "",
|
|
109
|
+
repository: cmdArgs.repository || "",
|
|
110
|
+
keywords: cmdArgs.keywords || [],
|
|
111
|
+
author: cmdArgs.author || "",
|
|
112
|
+
license: cmdArgs.license || "ISC",
|
|
113
|
+
type: cmdArgs.type || "project"
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
const questions = [];
|
|
117
|
+
if (!cmdArgs.name) {
|
|
118
|
+
questions.push({
|
|
119
|
+
type: "text",
|
|
120
|
+
name: "name",
|
|
121
|
+
message: "package name:",
|
|
122
|
+
initial: defaultName
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (!cmdArgs.version) {
|
|
126
|
+
questions.push({
|
|
127
|
+
type: "text",
|
|
128
|
+
name: "version",
|
|
129
|
+
message: "version:",
|
|
130
|
+
initial: "1.0.0"
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
if (!cmdArgs.description) {
|
|
134
|
+
questions.push({
|
|
135
|
+
type: "text",
|
|
136
|
+
name: "description",
|
|
137
|
+
message: "description:"
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
if (!cmdArgs.repository) {
|
|
141
|
+
questions.push({
|
|
142
|
+
type: "text",
|
|
143
|
+
name: "repository",
|
|
144
|
+
message: "git repository:"
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
if (!cmdArgs.keywords) {
|
|
148
|
+
questions.push({
|
|
149
|
+
type: "list",
|
|
150
|
+
name: "keywords",
|
|
151
|
+
message: "keywords (comma separated):"
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
if (!cmdArgs.author) {
|
|
155
|
+
questions.push({
|
|
156
|
+
type: "text",
|
|
157
|
+
name: "author",
|
|
158
|
+
message: "author:"
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
if (!cmdArgs.license) {
|
|
162
|
+
questions.push({
|
|
163
|
+
type: "text",
|
|
164
|
+
name: "license",
|
|
165
|
+
message: "license:",
|
|
166
|
+
initial: "ISC"
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
if (!cmdArgs.type) {
|
|
170
|
+
questions.push({
|
|
171
|
+
type: "select",
|
|
172
|
+
name: "type",
|
|
173
|
+
message: "project type:",
|
|
174
|
+
choices: [{
|
|
175
|
+
title: "project using jsx templates",
|
|
176
|
+
value: "project",
|
|
177
|
+
description: "Use alloy and jsx templates to generate code. Requires a babel transform."
|
|
178
|
+
}, {
|
|
179
|
+
title: "project using string template components",
|
|
180
|
+
value: "stc-project",
|
|
181
|
+
description: "Use alloy and string templates to generate code. Does not require babel transform."
|
|
182
|
+
}, {
|
|
183
|
+
title: "library",
|
|
184
|
+
value: "library",
|
|
185
|
+
description: "Create a library of alloy JSX components. Requires a babel transform."
|
|
186
|
+
}]
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
const answers = questions.length > 0 ? await prompts(questions, {
|
|
190
|
+
onCancel: p => {
|
|
191
|
+
console.log("Operation canceled. No files were generated.");
|
|
192
|
+
process.exit(0);
|
|
193
|
+
}
|
|
194
|
+
}) : {};
|
|
195
|
+
return {
|
|
196
|
+
name: cmdArgs.name || answers.name || defaultName,
|
|
197
|
+
version: cmdArgs.version || answers.version || "1.0.0",
|
|
198
|
+
description: cmdArgs.description || answers.description || "",
|
|
199
|
+
repository: cmdArgs.repository || answers.repository || "",
|
|
200
|
+
keywords: cmdArgs.keywords || answers.keywords || [],
|
|
201
|
+
author: cmdArgs.author || answers.author || "",
|
|
202
|
+
license: cmdArgs.license || answers.license || "ISC",
|
|
203
|
+
type: cmdArgs.type || answers.type || "project"
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
// Load dependencies and versions from JSON files
|
|
208
|
+
const depsFilePath = path.resolve(path.dirname(import.meta.url.replace("file:", "")), "../../deps.json");
|
|
209
|
+
const depsVersionsFilePath = path.resolve(path.dirname(import.meta.url.replace("file:", "")), "../../deps-versions.json");
|
|
210
|
+
const depsInfo = JSON.parse(fs.readFileSync(depsFilePath, "utf-8"));
|
|
211
|
+
const depsVersions = JSON.parse(fs.readFileSync(depsVersionsFilePath, "utf-8"));
|
|
212
|
+
const exports = {
|
|
213
|
+
".": {
|
|
214
|
+
import: "./dist/src/index.js",
|
|
215
|
+
types: "./dist/src/index.d.ts"
|
|
216
|
+
},
|
|
217
|
+
"./stc": {
|
|
218
|
+
import: "./dist/src/stc.js",
|
|
219
|
+
types: "./dist/src/stc.d.ts"
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
const main = async () => {
|
|
223
|
+
const cmdArgs = parseCommandLineArgs();
|
|
224
|
+
if (cmdArgs.help) {
|
|
225
|
+
displayHelp();
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
const packageInfo = await promptForPackageInfo(cmdArgs.useDefaults, cmdArgs);
|
|
229
|
+
let scripts;
|
|
230
|
+
if (packageInfo.type === "stc-project") {
|
|
231
|
+
scripts = {
|
|
232
|
+
"build-tsc": "tsc -p .",
|
|
233
|
+
build: "npm run build-tsc",
|
|
234
|
+
clean: "rimraf dist/ .temp/",
|
|
235
|
+
test: "vitest run",
|
|
236
|
+
"test:watch": "vitest -w",
|
|
237
|
+
"watch-tsc": "tsc -p . --watch",
|
|
238
|
+
watch: "npm run watch-tsc"
|
|
239
|
+
};
|
|
240
|
+
} else {
|
|
241
|
+
scripts = {
|
|
242
|
+
"build-src": "babel src -d dist/src --extensions .ts,.tsx",
|
|
243
|
+
"build-tsc": "tsc -p .",
|
|
244
|
+
build: "npm run build-tsc && npm run build-src",
|
|
245
|
+
clean: "rimraf dist/ .temp/",
|
|
246
|
+
test: "vitest run",
|
|
247
|
+
"test:watch": "vitest -w",
|
|
248
|
+
"watch-src": "babel src -d dist/src --extensions '.ts,.tsx' --watch",
|
|
249
|
+
"watch-tsc": "tsc -p . --watch",
|
|
250
|
+
watch: 'concurrently --kill-others "npm run watch-tsc" "npm run watch-src"'
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// Map dependencies to their versions with filtering based on project type
|
|
255
|
+
const deps = Object.fromEntries(depsInfo.dependencies.filter(dep => packageInfo.type === "stc-project" ? dep.stc : dep.jsx).map(dep => [dep.package, depsVersions[dep.package]]));
|
|
256
|
+
const devDeps = Object.fromEntries(depsInfo.devDependencies.filter(dep => packageInfo.type === "stc-project" ? dep.stc : dep.jsx).map(dep => [dep.package, depsVersions[dep.package]]));
|
|
257
|
+
const files = _$createComponent(Output, {
|
|
258
|
+
get children() {
|
|
259
|
+
return [_$createComponent(PackageJsonFile, {
|
|
260
|
+
type: "module",
|
|
261
|
+
get name() {
|
|
262
|
+
return packageInfo.name;
|
|
263
|
+
},
|
|
264
|
+
get version() {
|
|
265
|
+
return packageInfo.version;
|
|
266
|
+
},
|
|
267
|
+
get description() {
|
|
268
|
+
return packageInfo.description;
|
|
269
|
+
},
|
|
270
|
+
exports: exports,
|
|
271
|
+
dependencies: deps,
|
|
272
|
+
devDependencies: devDeps,
|
|
273
|
+
get license() {
|
|
274
|
+
return packageInfo.license;
|
|
275
|
+
},
|
|
276
|
+
scripts: scripts,
|
|
277
|
+
get author() {
|
|
278
|
+
return packageInfo.author;
|
|
279
|
+
},
|
|
280
|
+
get repository() {
|
|
281
|
+
return packageInfo.repository ? {
|
|
282
|
+
type: "git",
|
|
283
|
+
url: packageInfo.repository
|
|
284
|
+
} : undefined;
|
|
285
|
+
},
|
|
286
|
+
get keywords() {
|
|
287
|
+
return packageInfo.keywords;
|
|
288
|
+
}
|
|
289
|
+
}), _$createComponent(SourceDirectory, {
|
|
290
|
+
path: "src",
|
|
291
|
+
get children() {
|
|
292
|
+
return [_$createComponent(SourceDirectory, {
|
|
293
|
+
path: "components",
|
|
294
|
+
get children() {
|
|
295
|
+
return [_$createComponent(Show, {
|
|
296
|
+
get when() {
|
|
297
|
+
return packageInfo.type === "library";
|
|
298
|
+
},
|
|
299
|
+
get children() {
|
|
300
|
+
return _$createComponent(SourceDirectory, {
|
|
301
|
+
path: "stc",
|
|
302
|
+
get children() {
|
|
303
|
+
return _$createComponent(SourceFile, {
|
|
304
|
+
path: "index.ts",
|
|
305
|
+
children: "import * as jsx from \"../index.js\";"
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
}), _$createComponent(SourceFile, {
|
|
311
|
+
path: "index.ts",
|
|
312
|
+
children: "// barrel file for components"
|
|
313
|
+
}), _$createComponent(SourceFile, {
|
|
314
|
+
get path() {
|
|
315
|
+
return packageInfo.type === "stc-project" ? "ExampleComponent.ts" : "ExampleComponent.tsx";
|
|
316
|
+
},
|
|
317
|
+
children: code`
|
|
318
|
+
export interface ExampleComponentProps {}
|
|
319
|
+
|
|
320
|
+
export function ExampleComponent(props: ExampleComponentProps) {
|
|
321
|
+
|
|
322
|
+
}
|
|
323
|
+
`
|
|
324
|
+
})];
|
|
325
|
+
}
|
|
326
|
+
}), _$createComponent(SourceFile, {
|
|
327
|
+
path: "index.ts",
|
|
328
|
+
children: "export * from \"./components/index.js\";"
|
|
329
|
+
})];
|
|
330
|
+
}
|
|
331
|
+
}), _$createComponent(Show, {
|
|
332
|
+
get when() {
|
|
333
|
+
return packageInfo.type !== "stc-project";
|
|
334
|
+
},
|
|
335
|
+
get children() {
|
|
336
|
+
return _$createComponent(SourceFile, {
|
|
337
|
+
path: "babel.config.cjs",
|
|
338
|
+
children: code`
|
|
339
|
+
module.exports = {
|
|
340
|
+
sourceMaps: true,
|
|
341
|
+
presets: [
|
|
342
|
+
"@babel/preset-typescript",
|
|
343
|
+
["@alloy-js/babel-preset"],
|
|
344
|
+
],
|
|
345
|
+
};
|
|
346
|
+
`
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
}), _$createComponent(SourceFile, {
|
|
350
|
+
path: "tsconfig.json",
|
|
351
|
+
get children() {
|
|
352
|
+
return code`
|
|
353
|
+
{
|
|
354
|
+
"compilerOptions": {
|
|
355
|
+
"lib": ["es2023", "DOM"],
|
|
356
|
+
"module": "NodeNext",
|
|
357
|
+
"moduleResolution": "NodeNext",
|
|
358
|
+
"target": "es2022",
|
|
359
|
+
"strict": true,
|
|
360
|
+
"skipLibCheck": true,
|
|
361
|
+
"isolatedModules": true,
|
|
362
|
+
"declaration": true,
|
|
363
|
+
"sourceMap": true,
|
|
364
|
+
"declarationMap": true,
|
|
365
|
+
"composite": true,
|
|
366
|
+
"incremental": true,
|
|
367
|
+
"outDir": "dist"${packageInfo.type === "stc-project" ? "" : code`
|
|
368
|
+
,
|
|
369
|
+
"jsx": "preserve",
|
|
370
|
+
"jsxImportSource": "@alloy-js/core",
|
|
371
|
+
"emitDeclarationOnly": true
|
|
372
|
+
`}
|
|
373
|
+
},
|
|
374
|
+
"include": [
|
|
375
|
+
"src/**/*.ts",
|
|
376
|
+
"test/**/*.ts"${packageInfo.type === "stc-project" ? "" : code`
|
|
377
|
+
,
|
|
378
|
+
"src/**/*.tsx",
|
|
379
|
+
"test/**/*.tsx",
|
|
380
|
+
`}
|
|
381
|
+
|
|
382
|
+
],
|
|
383
|
+
"exclude": ["node_modules", "dist"]
|
|
384
|
+
}
|
|
385
|
+
`;
|
|
386
|
+
}
|
|
387
|
+
}), _$createComponent(Show, {
|
|
388
|
+
get when() {
|
|
389
|
+
return packageInfo.type !== "stc-project";
|
|
390
|
+
},
|
|
391
|
+
get children() {
|
|
392
|
+
return _$createComponent(SourceFile, {
|
|
393
|
+
path: "vitest.config.ts",
|
|
394
|
+
children: code`
|
|
395
|
+
import { babel } from "@rollup/plugin-babel";
|
|
396
|
+
import { defineConfig } from "vitest/config";
|
|
397
|
+
|
|
398
|
+
export default defineConfig({
|
|
399
|
+
esbuild: {
|
|
400
|
+
jsx: "preserve",
|
|
401
|
+
sourcemap: "both",
|
|
402
|
+
},
|
|
403
|
+
plugins: [
|
|
404
|
+
babel({
|
|
405
|
+
inputSourceMap: true as any,
|
|
406
|
+
sourceMaps: "both",
|
|
407
|
+
babelHelpers: "bundled",
|
|
408
|
+
extensions: [".ts", ".tsx"],
|
|
409
|
+
presets: ["@babel/preset-typescript", ["@alloy-js/babel-preset"]],
|
|
410
|
+
}),
|
|
411
|
+
],
|
|
412
|
+
});
|
|
413
|
+
`
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
})];
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
writeOutput(render(files));
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
// Execute main function
|
|
423
|
+
main().catch(console.error);
|
|
424
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["code","Output","render","Show","SourceDirectory","writeOutput","PackageJsonFile","SourceFile","fs","parseArgs","path","prompts","displayHelp","console","log","parseCommandLineArgs","values","options","h","type","short","help","y","name","version","description","main","repository","keywords","author","license","library","project","stc","useDefaults","split","map","k","trim","filter","Boolean","undefined","calculatePackageName","cwd","process","dirName","basename","toLowerCase","replace","promptForPackageInfo","cmdArgs","defaultName","questions","push","message","initial","choices","title","value","answers","length","onCancel","p","exit","depsFilePath","resolve","dirname","import","meta","url","depsVersionsFilePath","depsInfo","JSON","parse","readFileSync","depsVersions","exports","types","packageInfo","scripts","build","clean","test","watch","deps","Object","fromEntries","dependencies","dep","jsx","package","devDeps","devDependencies","files","_$createComponent","children","when","catch","error"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SACEA,IAAI,EACJC,MAAM,EACNC,MAAM,EACNC,IAAI,EACJC,eAAe,EACfC,WAAW,QACN,gBAAgB;AACvB,SAASC,eAAe,EAAEC,UAAU,QAAQ,sBAAsB;AAClE,OAAOC,EAAE,MAAM,IAAI;AACnB,SAASC,SAAS,QAAQ,WAAW;AACrC,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,OAAO,MAAM,SAAS;AAE7B,MAAMC,WAAW,GAAGA,CAAA,KAAM;EACxBC,OAAO,CAACC,GAAG,CAAC;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF,CAAC;AAED,SAASC,oBAAoBA,CAAA,EAG3B;EACA,MAAM;IAAEC;EAAO,CAAC,GAAGP,SAAS,CAAC;IAC3BQ,OAAO,EAAE;MACPC,CAAC,EAAE;QAAEC,IAAI,EAAE,SAAS;QAAEC,KAAK,EAAE;MAAI,CAAC;MAClCC,IAAI,EAAE;QAAEF,IAAI,EAAE;MAAU,CAAC;MACzBG,CAAC,EAAE;QAAEH,IAAI,EAAE;MAAU,CAAC;MACtBI,IAAI,EAAE;QAAEJ,IAAI,EAAE;MAAS,CAAC;MACxBK,OAAO,EAAE;QAAEL,IAAI,EAAE;MAAS,CAAC;MAC3BM,WAAW,EAAE;QAAEN,IAAI,EAAE;MAAS,CAAC;MAC/BO,IAAI,EAAE;QAAEP,IAAI,EAAE;MAAS,CAAC;MACxBQ,UAAU,EAAE;QAAER,IAAI,EAAE;MAAS,C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K,aAAa;QAAA;QAAA,IAAA4E,SAAA;UAAA,OAAAD,iBAAA,CAC3CvF,UAAU;YAACG,IAAI;YAAAqF,QAAA,EACb/F,IAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;UAAW;QAAA;MAAA,IAAA8F,iBAAA,CAGJvF,UAAU;QAACG,IAAI;QAAA,IAAAqF,SAAA;UAAA,OACb/F,IAAI;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BACc8E,WAAW,CAAC3D,IAAI,KAAK,aAAa,GAChC,EAAE,GACFnB,IAAI;AACpB;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,4BAEc8E,WAAW,CAAC3D,IAAI,KAAK,aAAa,GAChC,EAAE,GACFnB,IAAI;AACpB;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,OACO;QAAA;MAAA,IAAA8F,iBAAA,CAGA3F,IAAI;QAAA,IAAC6F,IAAIA,CAAA;UAAA,OAAElB,WAAW,CAAC3D,IAAI,KAAK,aAAa;QAAA;QAAA,IAAA4E,SAAA;UAAA,OAAAD,iBAAA,CAC3CvF,UAAU;YAACG,IAAI;YAAAqF,QAAA,EACb/F,IAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;UAAW;QAAA;MAAA;IAAA;EAAA,EAIR;EACDK,WAAW,CAACH,MAAM,CAAC2F,KAAK,CAAC,CAAC;AAC5B,CAAC;;AAED;AACAnE,IAAI,CAAC,CAAC,CAACuE,KAAK,CAACpF,OAAO,CAACqF,KAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@vue+shared@3.4.37/node_modules/@vue/shared/dist/shared.d.ts","../../../node_modules/.pnpm/@vue+reactivity@3.4.37/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../core/dist/src/refkey.d.ts","../../../node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/doc.d.ts","../../../node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/index.d.ts","../../core/dist/src/render.d.ts","../../core/dist/src/jsx-runtime.d.ts","../../core/dist/src/binder.d.ts","../../core/dist/src/code.d.ts","../../core/dist/src/components/Block.d.ts","../../core/dist/src/components/Declaration.d.ts","../../core/dist/src/utils.d.ts","../../core/dist/src/components/List.d.ts","../../core/dist/src/components/For.d.ts","../../core/dist/src/components/Indent.d.ts","../../core/dist/src/components/MemberDeclaration.d.ts","../../core/dist/src/components/MemberName.d.ts","../../core/dist/src/components/MemberScope.d.ts","../../core/dist/src/components/Name.d.ts","../../core/dist/src/name-policy.d.ts","../../core/dist/src/components/Output.d.ts","../../core/dist/src/components/Scope.d.ts","../../core/dist/src/components/Show.d.ts","../../core/dist/src/components/SourceDirectory.d.ts","../../core/dist/src/components/SourceFile.d.ts","../../core/dist/src/components/StatementList.d.ts","../../core/dist/src/components/Switch.d.ts","../../core/dist/src/components/Wrap.d.ts","../../core/dist/src/components/index.d.ts","../../core/dist/src/context.d.ts","../../core/dist/src/context/assignment.d.ts","../../core/dist/src/context/binder.d.ts","../../core/dist/src/context/declaration.d.ts","../../core/dist/src/context/member-declaration.d.ts","../../core/dist/src/context/member-scope.d.ts","../../core/dist/src/context/name-policy.d.ts","../../core/dist/src/context/scope.d.ts","../../core/dist/src/context/source-file.d.ts","../../core/dist/src/context/source-directory.d.ts","../../core/dist/src/context/index.d.ts","../../core/dist/src/stc.d.ts","../../core/dist/src/tap.d.ts","../../core/dist/src/write-output.d.ts","../../core/dist/src/debug.d.ts","../../core/dist/src/index.d.ts","../../typescript/dist/src/builtins/node.d.ts","../../typescript/dist/src/builtins/index.d.ts","../../typescript/dist/src/components/ArrayExpression.d.ts","../../typescript/dist/src/components/BarrelFile.d.ts","../../typescript/dist/src/name-policy.d.ts","../../typescript/dist/src/components/Declaration.d.ts","../../typescript/dist/src/components/FunctionDeclaration.d.ts","../../typescript/dist/src/components/ClassDeclaration.d.ts","../../typescript/dist/src/components/CommaList.d.ts","../../typescript/dist/src/components/EnumDeclaration.d.ts","../../typescript/dist/src/components/EnumMember.d.ts","../../typescript/dist/src/symbols/reference.d.ts","../../typescript/dist/src/symbols/ts-output-symbol.d.ts","../../typescript/dist/src/symbols/ts-member-scope.d.ts","../../typescript/dist/src/symbols/ts-module-scope.d.ts","../../typescript/dist/src/symbols/ts-package-scope.d.ts","../../typescript/dist/src/symbols/scopes.d.ts","../../typescript/dist/src/symbols/index.d.ts","../../typescript/dist/src/components/ExportStatement.d.ts","../../typescript/dist/src/components/FunctionCallExpression.d.ts","../../typescript/dist/src/components/ImportStatement.d.ts","../../typescript/dist/src/components/Interface.d.ts","../../typescript/dist/src/components/MemberChainExpression.d.ts","../../typescript/dist/src/components/ObjectExpression.d.ts","../../typescript/dist/src/components/PackageJson.d.ts","../../typescript/dist/src/components/PackageDirectory.d.ts","../../typescript/dist/src/components/Reference.d.ts","../../typescript/dist/src/components/SourceFile.d.ts","../../typescript/dist/src/components/TsConfigJson.d.ts","../../typescript/dist/src/components/TypeDeclaration.d.ts","../../typescript/dist/src/components/ValueExpression.d.ts","../../typescript/dist/src/components/VarDeclaration.d.ts","../../typescript/dist/src/components/index.d.ts","../../typescript/dist/src/create-package.d.ts","../../typescript/dist/src/name-conflict-resolver.d.ts","../../typescript/dist/src/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.13.10/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/kleur.d.ts","../../../node_modules/.pnpm/@types+prompts@2.4.9/node_modules/@types/prompts/index.d.ts","../src/index.tsx"],"fileIdsList":[[149,189,192],[149,191,192],[192],[149,192,197,227],[149,192,193,198,204,205,212,224,235],[149,192,193,194,204,212],[149,192],[144,145,146,149,192],[149,192,195,236],[149,192,196,197,205,213],[149,192,197,224,232],[149,192,198,200,204,212],[149,191,192,199],[149,192,200,201],[149,192,204],[149,192,202,204],[149,191,192,204],[149,192,204,205,206,224,235],[149,192,204,205,206,219,224,227],[149,187,192,240],[149,187,192,200,204,207,212,224,235],[149,192,204,205,207,208,212,224,232,235],[149,192,207,209,224,232,235],[147,148,149,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241],[149,192,204,210],[149,192,211,235],[149,192,200,204,212,224],[149,192,213],[149,192,214],[149,191,192,215],[149,189,190,191,192,193,194,195,196,197,198,199,200,201,202,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241],[149,192,217],[149,192,218],[149,192,204,219,220],[149,192,219,221,236,238],[149,192,204,224,225,227],[149,192,224,226],[149,192,224,225],[149,192,227],[149,192,228],[149,189,192,224],[149,192,204,230,231],[149,192,230,231],[149,192,197,212,224,232],[149,192,233],[149,192,212,234],[149,192,207,218,235],[149,192,197,236],[149,192,224,237],[149,192,211,238],[149,192,239],[149,192,197,204,206,215,224,235,238,240],[149,192,224,241],[149,192,224,242,243],[63,149,192],[66,149,192],[149,159,163,192,235],[149,159,192,224,235],[149,154,192],[149,156,159,192,232,235],[149,192,212,232],[149,192,242],[149,154,192,242],[149,156,159,192,212,235],[149,151,152,155,158,192,204,224,235],[149,159,166,192],[149,151,157,192],[149,159,180,181,192],[149,155,159,192,227,235,242],[149,180,192,242],[149,153,154,192,242],[149,159,192],[149,153,154,155,156,157,158,159,160,161,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,192],[149,159,174,192],[149,159,166,167,192],[149,157,159,167,168,192],[149,158,192],[149,151,154,159,192],[149,159,163,167,168,192],[149,163,192],[149,157,159,162,192,235],[149,151,156,159,166,192],[149,192,224],[149,154,159,180,192,240,242],[64,65,149,192],[69,149,192],[107,149,192],[65,69,70,149,192],[64,69,75,149,192],[69,74,149,192],[69,70,149,192],[68,69,70,82,149,192],[65,68,69,149,192],[72,73,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,149,192],[70,92,149,192],[93,94,95,96,97,98,99,100,101,149,192],[82,92,149,192],[92,100,149,192],[65,69,92,149,192],[64,65,68,69,70,71,74,82,91,92,102,103,104,105,106,149,192],[64,65,68,149,192],[67,69,149,192],[64,69,70,100,149,192],[68,69,149,192],[68,149,192],[69,107,143,149,192,205,214,236,244],[108,149,192],[107,113,114,149,192],[107,112,149,192],[107,113,149,192],[107,125,149,192],[69,107,113,149,192],[107,125,132,149,192],[69,107,125,149,192],[110,111,113,114,115,116,117,118,126,127,128,129,130,131,132,133,134,135,136,137,138,139,149,192],[109,112,125,140,141,142,149,192],[125,149,192],[119,120,121,122,123,124,149,192],[107,121,122,123,149,192],[107,120,149,192],[107,121,124,149,192],[107,122,149,192]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"6dcb89623cc070c3b2a29218f99a3501041b3ac3fc4c80ee7083b99ba320a694","impliedFormat":1},{"version":"d7320842ea9f50f92ccd7871357201f298e3a1e995033dfacd305fb1f82fb658","impliedFormat":1},{"version":"08ba4fc41a1b21cf2673fd5b515727b2fa69fb0f1923de37f60f6f307d0571e0","impliedFormat":99},{"version":"f63cb353cd53da6be4a34f6fdece6316dac14fd62cccf9a4d2ce6bab2c37bc8c","impliedFormat":1},{"version":"b6bab422f7b0d02e94140e6586c8521a7032471ed3f299d25c559496c4e552fc","impliedFormat":1},{"version":"04123bd38bb2032dcbc5cacd5cd4ef7c55b4349411793e4d707ab935f6598fa6","impliedFormat":99},{"version":"64aba38ce6ee84768b196ff127fe8ec66ca4440f27ad62b560a6be4d5016684b","impliedFormat":99},{"version":"7af3779b780c370f32b996501f3a5fe42de5c7560115abe14fb79fdab6c1a387","impliedFormat":99},{"version":"4d5f87f840f531b5e97f97e474523ba60d73d1389b247f5f92b794295c4a1b8b","impliedFormat":99},{"version":"765d70c31587ef4088b49b38930fa107e7dc5c478b53adf0e5a96e7cacdf9ca3","impliedFormat":99},{"version":"ea95f0c2856eb1da8caefdcac12c656ab8c7ab4b94e855c49dfe28ff0d1db048","impliedFormat":99},{"version":"97b3cf0abeaeb0d6a897c2a92f01fa5e322a82c5e5245ceb0cc743f444e5e7bf","impliedFormat":99},{"version":"f5846b170921dc7f843c083aeb724259a2f84e4b276cf5eacdecb8b89d940f47","impliedFormat":99},{"version":"00bc57a53bd93be59a2794d210a4f334d9b0e219c62ab6cd81ecdb6df26e651b","impliedFormat":99},{"version":"eef77afa76fff956c118aaba2b1c0668357d02b9d10e0c3eb51452be675c7bdb","impliedFormat":99},{"version":"1783d12c618f308ee0f23241514447c1f90f23cee44b842fc0c1d2fd707a1776","impliedFormat":99},{"version":"b966199f27fccde79faefec4cc0a50797b1316416b2c2d6517863e69d201000c","impliedFormat":99},{"version":"d8893d1df37abb0b07c9dc09ad4cd961f3808935ad83a9c09952fa24e4533aed","impliedFormat":99},{"version":"9f7af78847090eade75c5c4fa4f14113beee333eca3baf876cba39257a60033b","impliedFormat":99},{"version":"aecbe8ec9de47a0e1c59808ec19ea3239aaa539419fe6556bc27a85e7c5fef52","impliedFormat":99},{"version":"0cb828de781fce2df64aa544f253e314c8763a3c16493b1e6de6b0fcfe800f64","impliedFormat":99},{"version":"afb338fc8e83a4404278696eafe693f431bb0ebf8399fa79eefb72c63bff1e23","impliedFormat":99},{"version":"bbef6c4d9344d9cfadccbc191ed6022e098ea8684ba0c82b024952f2855ce730","impliedFormat":99},{"version":"647bb003fceb0ca567852dec0ddf96160aa721752053988fb565ce0bbfdec744","impliedFormat":99},{"version":"b1e19ef7d2ce49f352719a69354fbfd42ad854d24f433c20b8b0067d3fe78a07","impliedFormat":99},{"version":"4d9e5bbb85f0e23a2822833acd5e438cafdbaff03895dc939a26fdfdbbf19746","impliedFormat":99},{"version":"7b005c65bbfc2c41cbfc87adddb604a77ac4b1c0488e76486bc3582cc229aef4","impliedFormat":99},{"version":"7c527e94c48edf9a4ef5729cb7b51fb56bedc39d50e090fcd74cbf7f22e006a2","impliedFormat":99},{"version":"7e6146f3d20e45b9c4188319ec030519f1970d4dfe74d8c88add9ffbdb9ca4e3","impliedFormat":99},{"version":"a6c335e73886d206b234141bbbe5022610c076d9d572201b39131c1c845981fb","impliedFormat":99},{"version":"ddbef347d6087759c58b9c6016dbd67f146cd763a308e2a81691178a37f918cd","impliedFormat":99},{"version":"70a97ff642b39797723b06bca9ca95a11ca0a5d500a6370a0276a161b824dd61","impliedFormat":99},{"version":"f1fce7f0cebfe21875e347ba53267f125c8965c5846ac38c57e40206c36c8e72","impliedFormat":99},{"version":"a46c1b6a8a6696353946ec8ce28dcad993c2c67d76bf8f72493145e539392a24","impliedFormat":99},{"version":"2b56e05ca82e68017b05318a3bf00537bac19a73ed58b49c04f31ac2ee286c3c","impliedFormat":99},{"version":"c9708cd7a7fe201cc47b06cd5abac017faa09ad1dc7f9b968df92fe8a676df8e","impliedFormat":99},{"version":"f280c985c18932b5bfb6475d32692df63a29b45905936b0c5330ad58c18eda9f","impliedFormat":99},{"version":"3092060a1ce44246622812b6dae87d5bf2f1d53e75bb5bd98f8ec819911fe7a6","impliedFormat":99},{"version":"b3a0ba517be6107dfff16939f813b227bdadea7e27360f73f5a4d68b9d26b05e","impliedFormat":99},{"version":"35edeb639a74c2524d862f193a826c3ed04d62cd250c6450d72da190973c3249","impliedFormat":99},{"version":"2dac3ea875a8c9fb4674658d0c7d5e09c011cfd5aaa39d8d3aa99f277ed5f7f5","impliedFormat":99},{"version":"de2d5d5a1df78158f3592e2f62e69eaa4366258de064b30cf8c8b2a95200b6e2","impliedFormat":99},{"version":"ba0635b5b219b6829042d6a946c556ff791342ec849bb0bf994d45e914fc945c","impliedFormat":99},{"version":"5c900314ac652fbde24c0ba9a7903d3eea7cce32d21ad40a36b08277c92018d4","affectsGlobalScope":true,"impliedFormat":99},{"version":"ac7c2dbb0d3e7fd11d3dd9978bd0285951dfa51f725d70c9e35081d92b18469a","impliedFormat":99},{"version":"4b8a15c355ec289af310c30098ef76c0eaed85cd162a4dd2ebfadb28fae08db1","impliedFormat":99},{"version":"3c7a12c93d2d13269b4e8a0c81a79cd7e8b3101e642292baa17e1759446da513","impliedFormat":99},{"version":"039d0d0d8732c515e9e9491808b97c87c207205cc08cbe5fa094b99161ba1a90","impliedFormat":99},{"version":"d3e051f56000b040bd4802901c12fe3b63643290dc6ccd4d8600fcd17e2e61eb","impliedFormat":99},{"version":"1480cf2614264fb612ed8ef96a3ee82e5b9600484629a97675219b65f50789c1","impliedFormat":99},{"version":"7b7df81ce7505076a25adc6c46c2ab348778b123649b5af6a1b95bc0bbbd60d3","impliedFormat":99},{"version":"a3c9edd4e2b061de3700776ae43bd03251ee44c669604a398533ed1b8a4dfcde","impliedFormat":99},{"version":"62332da25097ae52351579b1e26ad1adacdf9652b716adbf684f144257c6ed09","impliedFormat":99},{"version":"a7f50f861bff41a281fc2a58f1968ff92b1d545b4c17cc09a3d2a7e5b625aa21","impliedFormat":99},{"version":"fc33b84e1261ab2385455558603ef1546d1e6992b6e1f254afd2aa67fcd56ffa","impliedFormat":99},{"version":"3be16bbc5582c0aecf5da108eb8dd1ab8d4b68684873a6a1e0a870ebac7c08f6","impliedFormat":99},{"version":"b198833ebe375d136a7ba8c4445d183c84dc9e3c47f0f1be86e36a2f8cb1f9ba","impliedFormat":99},{"version":"bebcdad491aa35fffefdc5562d4b1aa9cd3959b3266113f343439c3ee9be76bb","impliedFormat":99},{"version":"c414b5436e7c027d85883929a0c7a842d20809516bd7defa07c3510b1fa7131f","impliedFormat":99},{"version":"bd1c8cb0c763ee25d96deea377ba7ea71a5887fde8237b006a0982022aeeacfe","impliedFormat":99},{"version":"a3206d43b260ffa8261b610343277f636ee32b2e82947ee5e9db8e34acc21d21","impliedFormat":99},{"version":"4f2f0bdbb2fb0067fba972a30fdd540f11ffc87e035ebb07a449885ffdf56977","impliedFormat":99},{"version":"ab66139887880cf37295ca6e4cef462527636204aac159bc33a2c00f1559b16b","impliedFormat":99},{"version":"ddf04a27fc8e2708bae2cb6dff61918b8820e07e6f74fdf51971fdc9b433e3ef","impliedFormat":99},{"version":"b2cd4361e81335273fe98a873e6e0c480f74f76fb5712c69febd5b715d63d839","impliedFormat":99},{"version":"5b183fbccae606ee3f0098e2dd287cabb29c58d63ab44ce5c5de410de3479aba","impliedFormat":99},{"version":"d2eee1910df9110df9ae7f5bc7d485675704da308692b438cfb4238938c4cae6","impliedFormat":99},{"version":"61ba245b9f65a21140352f68e80a1a2f3b586733874f273260a6390cec84af17","impliedFormat":99},{"version":"1085890378c79e9c717dc8ade424bfa4ef936934f7c7162bbf7d4b88e7ada9b6","impliedFormat":99},{"version":"dbb40e61c34a29cd7b7008ee71bb37924335426eca109e8c88dcb46165f974b1","impliedFormat":99},{"version":"dc48da99aa796025f951a5fd311802691390b066f1c256f64e995ba144b14970","impliedFormat":99},{"version":"aa213b7bae9e4e9e0f596d84941d28057a542a588b851cdf7dc2c47ff7ae2cf7","impliedFormat":99},{"version":"0e6bc44a5b97e1f104d21d030dd79ff0952dffd477f645b8bcf46e3cd7e7fb70","impliedFormat":99},{"version":"b4e5e84ebeca96a800bc4084e2ca47c85cf127c0d1fcd880772259dfc6f09d9f","impliedFormat":99},{"version":"5d996520de3c8be8c3533fd900d92e0648c808b0c004749f5e4645422e046af7","impliedFormat":99},{"version":"d665107204765ac920809fd305d74db3ab3895cdc309d206ca94be0a1f315359","impliedFormat":99},{"version":"cf96cd39f0a9ed885249659b29c912a3934e6604d8605629aa116865aacb8c57","impliedFormat":99},{"version":"e21949bba1d17fe2ffc164fa2c2353cb5ffef1e35ca402439274b833daa3c9f4","impliedFormat":99},{"version":"b88d8c21891a2bd950e66f5709d83bc1a0b0acaac88a21805b8a1be94096ba9b","impliedFormat":99},{"version":"a51b971db4c0ee432ffdd992caad012213f8f3a85c2bd850517b266af64564e9","impliedFormat":99},{"version":"1519cddd89fede4e745cc7689cf2336d9ec9781866db19432acad2b3657887e3","impliedFormat":99},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"8fa51737611c21ba3a5ac02c4e1535741d58bec67c9bdf94b1837a31c97a2263","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"f9677e434b7a3b14f0a9367f9dfa1227dfe3ee661792d0085523c3191ae6a1a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"9057f224b79846e3a95baf6dad2c8103278de2b0c5eebda23fc8188171ad2398","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"f579f267a2f4c2278cca2ec84613e95059368b503ce96586972d304e5e40125b","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"f7b1df115dbd1b8522cba4f404a9f4fdcd5169e2137129187ffeee9d287e4fd1","impliedFormat":1},{"version":"c878f74b6d10b267f6075c51ac1d8becd15b4aa6a58f79c0cfe3b24908357f60","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"fbf68fc8057932b1c30107ebc37420f8d8dc4bef1253c4c2f9e141886c0df5ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"993985beef40c7d113f6dd8f0ba26eed63028b691fbfeb6a5b63f26408dd2c6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"6ab263df6465e2ed8f1d02922bae18bb5b407020767de021449a4c509859b22e","impliedFormat":1},{"version":"6805621d9f970cda51ab1516e051febe5f3ec0e45b371c7ad98ac2700d13d57c","impliedFormat":1},{"version":"e2d88d704266abcb93a7287a15942761077e88c88fceb95d3c738feeb5bb90f4","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99}],"root":[245],"options":{"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"jsx":1,"jsxImportSource":"@alloy-js/core","module":199,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[189,1],[190,1],[191,2],[149,3],[192,4],[193,5],[194,6],[144,7],[147,8],[145,7],[146,7],[195,9],[196,10],[197,11],[198,12],[199,13],[200,14],[201,14],[203,15],[202,16],[204,17],[205,18],[206,19],[188,20],[148,7],[207,21],[208,22],[209,23],[242,24],[210,25],[211,26],[212,27],[213,28],[214,29],[215,30],[216,31],[217,32],[218,33],[219,34],[220,34],[221,35],[222,7],[223,7],[224,36],[226,37],[225,38],[227,39],[228,40],[229,41],[230,42],[231,43],[232,44],[233,45],[234,46],[235,47],[236,48],[237,49],[238,50],[239,51],[240,52],[241,53],[244,54],[64,55],[63,7],[150,7],[243,7],[66,7],[67,56],[61,7],[62,7],[11,7],[13,7],[12,7],[2,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[21,7],[3,7],[22,7],[23,7],[4,7],[24,7],[28,7],[25,7],[26,7],[27,7],[29,7],[30,7],[31,7],[5,7],[32,7],[33,7],[34,7],[35,7],[6,7],[39,7],[36,7],[37,7],[38,7],[40,7],[7,7],[41,7],[46,7],[47,7],[42,7],[43,7],[44,7],[45,7],[8,7],[51,7],[48,7],[49,7],[50,7],[52,7],[9,7],[53,7],[54,7],[55,7],[57,7],[56,7],[58,7],[59,7],[10,7],[60,7],[1,7],[166,57],[176,58],[165,57],[186,59],[157,60],[156,61],[185,62],[179,63],[184,64],[159,65],[173,66],[158,67],[182,68],[154,69],[153,62],[183,70],[155,71],[160,72],[161,7],[164,72],[151,7],[187,73],[177,74],[168,75],[169,76],[171,77],[167,78],[170,79],[180,62],[162,80],[163,81],[172,82],[152,83],[175,74],[174,72],[178,7],[181,84],[70,85],[71,86],[72,87],[73,88],[76,89],[77,86],[75,90],[78,88],[79,86],[80,91],[81,86],[83,92],[84,91],[85,86],[86,86],[87,93],[88,87],[89,86],[90,86],[91,94],[92,86],[93,95],[94,95],[95,95],[102,96],[96,95],[97,95],[98,97],[99,95],[101,98],[100,99],[106,7],[107,100],[69,101],[82,7],[65,7],[68,102],[103,86],[104,103],[74,104],[105,105],[245,106],[109,107],[108,87],[110,87],[111,87],[115,108],[116,87],[113,109],[117,110],[118,87],[126,111],[127,87],[114,112],[128,111],[129,110],[130,86],[131,87],[133,113],[132,87],[134,87],[135,114],[136,87],[137,110],[138,87],[139,110],[140,115],[141,87],[143,116],[142,117],[112,87],[125,118],[119,87],[124,119],[121,120],[122,120],[120,121],[123,122]],"latestChangedDtsFile":"./src/index.d.ts","version":"5.7.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alloy-js/create",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Create an Alloy project with npm init @alloy-js",
|
|
5
|
+
"main": "./dist/src/index.js",
|
|
6
|
+
"bin": "./dist/src/index.js",
|
|
7
|
+
"keywords": [],
|
|
8
|
+
"author": "brian.terlson@microsoft.com",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@alloy-js/core": "~0.6.0",
|
|
12
|
+
"@alloy-js/typescript": "~0.6.0"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@babel/cli": "^7.24.7",
|
|
16
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
17
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
18
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
19
|
+
"@types/node": "^20.14.12",
|
|
20
|
+
"@types/prompts": "^2.4.9",
|
|
21
|
+
"concurrently": "^8.2.2",
|
|
22
|
+
"js-yaml": "^4.1.0",
|
|
23
|
+
"prompts": "^2.4.2",
|
|
24
|
+
"typescript": "^5.7.3",
|
|
25
|
+
"vite": "^6.0.1",
|
|
26
|
+
"vitest": "^3.0.4",
|
|
27
|
+
"@alloy-js/babel-plugin": "~0.2.0"
|
|
28
|
+
},
|
|
29
|
+
"type": "module",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build-src": "babel src -d dist/src --extensions .ts,.tsx",
|
|
32
|
+
"build": "tsc -p . && npm run build-src",
|
|
33
|
+
"clean": "rimraf dist/ .temp/",
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"test:watch": "vitest -w",
|
|
36
|
+
"watch-src": "babel src -d dist/src --extensions '.ts,.tsx' --watch",
|
|
37
|
+
"watch-tsc": "tsc -p . --watch",
|
|
38
|
+
"watch": "concurrently --kill-others \"npm run watch-tsc\" \"npm run watch-src\""
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import fs from "fs/promises";
|
|
2
|
+
import yaml from "js-yaml";
|
|
3
|
+
import path from "path";
|
|
4
|
+
|
|
5
|
+
async function generateDepsVersions() {
|
|
6
|
+
// Get current directory (assuming script is run from package root)
|
|
7
|
+
const packageDir = process.cwd();
|
|
8
|
+
|
|
9
|
+
// Load package.json
|
|
10
|
+
const packageJsonPath = path.join(packageDir, "package.json");
|
|
11
|
+
const packageJson = JSON.parse(await fs.readFile(packageJsonPath, "utf8"));
|
|
12
|
+
const packageVersion = packageJson.version;
|
|
13
|
+
|
|
14
|
+
// Load deps.json
|
|
15
|
+
const depsJsonPath = path.join(packageDir, "deps.json");
|
|
16
|
+
const depsJson = JSON.parse(await fs.readFile(depsJsonPath, "utf8"));
|
|
17
|
+
|
|
18
|
+
// Load workspace yaml for catalog
|
|
19
|
+
const workspaceYamlPath = path.join(packageDir, "../../pnpm-workspace.yaml");
|
|
20
|
+
const workspaceYaml = yaml.load(await fs.readFile(workspaceYamlPath, "utf8"));
|
|
21
|
+
const catalog = workspaceYaml.catalog || {};
|
|
22
|
+
|
|
23
|
+
// Generate versions object
|
|
24
|
+
const versions = {};
|
|
25
|
+
|
|
26
|
+
// Process dependencies
|
|
27
|
+
const allDeps = [
|
|
28
|
+
...(depsJson.dependencies || []),
|
|
29
|
+
...(depsJson.devDependencies || []),
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
for (const dep of allDeps) {
|
|
33
|
+
const packageName = dep.package;
|
|
34
|
+
|
|
35
|
+
if (packageName === "@alloy-js/babel-plugin") {
|
|
36
|
+
// Special case for @alloy-js/babel-plugin
|
|
37
|
+
const babelPluginPath = path.join(
|
|
38
|
+
packageDir,
|
|
39
|
+
"../babel-plugin-alloy/package.json",
|
|
40
|
+
);
|
|
41
|
+
const babelPluginJson = JSON.parse(
|
|
42
|
+
await fs.readFile(babelPluginPath, "utf8"),
|
|
43
|
+
);
|
|
44
|
+
versions[packageName] = babelPluginJson.version;
|
|
45
|
+
} else if (packageName.startsWith("@alloy-js")) {
|
|
46
|
+
versions[packageName] = packageVersion;
|
|
47
|
+
} else if (catalog[packageName]) {
|
|
48
|
+
versions[packageName] = catalog[packageName];
|
|
49
|
+
} else {
|
|
50
|
+
console.warn(`Warning: No catalog entry found for ${packageName}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Write to deps-versions.json
|
|
55
|
+
const outputPath = path.join(packageDir, "deps-versions.json");
|
|
56
|
+
await fs.writeFile(outputPath, JSON.stringify(versions, null, 2), "utf8");
|
|
57
|
+
|
|
58
|
+
console.log(`Dependencies versions written to ${outputPath}`);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Execute the function
|
|
62
|
+
generateDepsVersions().catch((err) => {
|
|
63
|
+
console.error("Error generating dependencies versions:", err);
|
|
64
|
+
process.exit(1);
|
|
65
|
+
});
|
package/src/index.tsx
ADDED
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import {
|
|
2
|
+
code,
|
|
3
|
+
Output,
|
|
4
|
+
render,
|
|
5
|
+
Show,
|
|
6
|
+
SourceDirectory,
|
|
7
|
+
writeOutput,
|
|
8
|
+
} from "@alloy-js/core";
|
|
9
|
+
import { PackageJsonFile, SourceFile } from "@alloy-js/typescript";
|
|
10
|
+
import fs from "fs";
|
|
11
|
+
import { parseArgs } from "node:util";
|
|
12
|
+
import path from "path";
|
|
13
|
+
import prompts from "prompts";
|
|
14
|
+
|
|
15
|
+
const displayHelp = () => {
|
|
16
|
+
console.log(`
|
|
17
|
+
Alloy Project Generator
|
|
18
|
+
|
|
19
|
+
Usage:
|
|
20
|
+
npm init @alloy-js [options]
|
|
21
|
+
|
|
22
|
+
Options:
|
|
23
|
+
-h, --help Show this help message
|
|
24
|
+
-y Use default values without prompting
|
|
25
|
+
--name <name> Package name
|
|
26
|
+
--version <version> Package version
|
|
27
|
+
--description <desc> Package description
|
|
28
|
+
--repository <url> Git repository URL
|
|
29
|
+
--keywords <list> Comma-separated list of keywords
|
|
30
|
+
--author <name> Author name
|
|
31
|
+
--license <license> License type
|
|
32
|
+
--library Create a library project
|
|
33
|
+
--stc Create a project using string template components
|
|
34
|
+
--project Create a general project (default)
|
|
35
|
+
`);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
function parseCommandLineArgs(): Partial<PackageInfo> & {
|
|
39
|
+
help: boolean;
|
|
40
|
+
useDefaults: boolean;
|
|
41
|
+
} {
|
|
42
|
+
const { values } = parseArgs({
|
|
43
|
+
options: {
|
|
44
|
+
h: { type: "boolean", short: "h" },
|
|
45
|
+
help: { type: "boolean" },
|
|
46
|
+
y: { type: "boolean" },
|
|
47
|
+
name: { type: "string" },
|
|
48
|
+
version: { type: "string" },
|
|
49
|
+
description: { type: "string" },
|
|
50
|
+
main: { type: "string" },
|
|
51
|
+
repository: { type: "string" },
|
|
52
|
+
keywords: { type: "string" },
|
|
53
|
+
author: { type: "string" },
|
|
54
|
+
license: { type: "string" },
|
|
55
|
+
library: { type: "boolean" },
|
|
56
|
+
project: { type: "boolean" },
|
|
57
|
+
stc: { type: "boolean" },
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
help: values.h || values.help || false,
|
|
63
|
+
useDefaults: values.y || false,
|
|
64
|
+
name: values.name,
|
|
65
|
+
version: values.version,
|
|
66
|
+
description: values.description,
|
|
67
|
+
repository: values.repository,
|
|
68
|
+
keywords:
|
|
69
|
+
values.keywords ?
|
|
70
|
+
values.keywords
|
|
71
|
+
.split(",")
|
|
72
|
+
.map((k: string) => k.trim())
|
|
73
|
+
.filter(Boolean)
|
|
74
|
+
: undefined,
|
|
75
|
+
author: values.author,
|
|
76
|
+
license: values.license,
|
|
77
|
+
type:
|
|
78
|
+
values.library ? "library"
|
|
79
|
+
: values.stc ? "stc-project"
|
|
80
|
+
: values.project ? "project"
|
|
81
|
+
: "project",
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const calculatePackageName = () => {
|
|
86
|
+
const cwd = process.cwd();
|
|
87
|
+
const dirName = path.basename(cwd);
|
|
88
|
+
|
|
89
|
+
// Clean up directory name to be a valid package name
|
|
90
|
+
return dirName
|
|
91
|
+
.toLowerCase()
|
|
92
|
+
.replace(/[^a-z0-9._-]/g, "-")
|
|
93
|
+
.replace(/^[._-]+|[._-]+$/g, "");
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
interface PackageInfo {
|
|
97
|
+
name: string;
|
|
98
|
+
version: string;
|
|
99
|
+
description: string;
|
|
100
|
+
repository: string;
|
|
101
|
+
keywords: string[];
|
|
102
|
+
author: string;
|
|
103
|
+
license: string;
|
|
104
|
+
type: "project" | "stc-project" | "library";
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Function to prompt for package information
|
|
108
|
+
const promptForPackageInfo = async (
|
|
109
|
+
useDefaults: boolean,
|
|
110
|
+
cmdArgs: Partial<PackageInfo> = {},
|
|
111
|
+
): Promise<PackageInfo> => {
|
|
112
|
+
const defaultName = calculatePackageName();
|
|
113
|
+
|
|
114
|
+
if (useDefaults) {
|
|
115
|
+
return {
|
|
116
|
+
name: cmdArgs.name || defaultName,
|
|
117
|
+
version: cmdArgs.version || "1.0.0",
|
|
118
|
+
description: cmdArgs.description || "",
|
|
119
|
+
repository: cmdArgs.repository || "",
|
|
120
|
+
keywords: cmdArgs.keywords || [],
|
|
121
|
+
author: cmdArgs.author || "",
|
|
122
|
+
license: cmdArgs.license || "ISC",
|
|
123
|
+
type: cmdArgs.type || "project",
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const questions: prompts.PromptObject[] = [];
|
|
128
|
+
|
|
129
|
+
if (!cmdArgs.name) {
|
|
130
|
+
questions.push({
|
|
131
|
+
type: "text",
|
|
132
|
+
name: "name",
|
|
133
|
+
message: "package name:",
|
|
134
|
+
initial: defaultName,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (!cmdArgs.version) {
|
|
139
|
+
questions.push({
|
|
140
|
+
type: "text",
|
|
141
|
+
name: "version",
|
|
142
|
+
message: "version:",
|
|
143
|
+
initial: "1.0.0",
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (!cmdArgs.description) {
|
|
148
|
+
questions.push({
|
|
149
|
+
type: "text",
|
|
150
|
+
name: "description",
|
|
151
|
+
message: "description:",
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (!cmdArgs.repository) {
|
|
156
|
+
questions.push({
|
|
157
|
+
type: "text",
|
|
158
|
+
name: "repository",
|
|
159
|
+
message: "git repository:",
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (!cmdArgs.keywords) {
|
|
164
|
+
questions.push({
|
|
165
|
+
type: "list",
|
|
166
|
+
name: "keywords",
|
|
167
|
+
message: "keywords (comma separated):",
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (!cmdArgs.author) {
|
|
172
|
+
questions.push({
|
|
173
|
+
type: "text",
|
|
174
|
+
name: "author",
|
|
175
|
+
message: "author:",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (!cmdArgs.license) {
|
|
180
|
+
questions.push({
|
|
181
|
+
type: "text",
|
|
182
|
+
name: "license",
|
|
183
|
+
message: "license:",
|
|
184
|
+
initial: "ISC",
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (!cmdArgs.type) {
|
|
189
|
+
questions.push({
|
|
190
|
+
type: "select",
|
|
191
|
+
name: "type",
|
|
192
|
+
message: "project type:",
|
|
193
|
+
choices: [
|
|
194
|
+
{
|
|
195
|
+
title: "project using jsx templates",
|
|
196
|
+
value: "project",
|
|
197
|
+
description:
|
|
198
|
+
"Use alloy and jsx templates to generate code. Requires a babel transform.",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
title: "project using string template components",
|
|
202
|
+
value: "stc-project",
|
|
203
|
+
description:
|
|
204
|
+
"Use alloy and string templates to generate code. Does not require babel transform.",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
title: "library",
|
|
208
|
+
value: "library",
|
|
209
|
+
description:
|
|
210
|
+
"Create a library of alloy JSX components. Requires a babel transform.",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const answers =
|
|
217
|
+
questions.length > 0 ?
|
|
218
|
+
await prompts(questions, {
|
|
219
|
+
onCancel: (p) => {
|
|
220
|
+
console.log("Operation canceled. No files were generated.");
|
|
221
|
+
process.exit(0);
|
|
222
|
+
},
|
|
223
|
+
})
|
|
224
|
+
: {};
|
|
225
|
+
|
|
226
|
+
return {
|
|
227
|
+
name: cmdArgs.name || answers.name || defaultName,
|
|
228
|
+
version: cmdArgs.version || answers.version || "1.0.0",
|
|
229
|
+
description: cmdArgs.description || answers.description || "",
|
|
230
|
+
repository: cmdArgs.repository || answers.repository || "",
|
|
231
|
+
keywords: cmdArgs.keywords || answers.keywords || [],
|
|
232
|
+
author: cmdArgs.author || answers.author || "",
|
|
233
|
+
license: cmdArgs.license || answers.license || "ISC",
|
|
234
|
+
type: cmdArgs.type || answers.type || "project",
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
// Load dependencies and versions from JSON files
|
|
239
|
+
const depsFilePath = path.resolve(
|
|
240
|
+
path.dirname(import.meta.url.replace("file:", "")),
|
|
241
|
+
"../../deps.json",
|
|
242
|
+
);
|
|
243
|
+
const depsVersionsFilePath = path.resolve(
|
|
244
|
+
path.dirname(import.meta.url.replace("file:", "")),
|
|
245
|
+
"../../deps-versions.json",
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
const depsInfo = JSON.parse(fs.readFileSync(depsFilePath, "utf-8"));
|
|
249
|
+
const depsVersions = JSON.parse(fs.readFileSync(depsVersionsFilePath, "utf-8"));
|
|
250
|
+
|
|
251
|
+
const exports = {
|
|
252
|
+
".": {
|
|
253
|
+
import: "./dist/src/index.js",
|
|
254
|
+
types: "./dist/src/index.d.ts",
|
|
255
|
+
},
|
|
256
|
+
"./stc": {
|
|
257
|
+
import: "./dist/src/stc.js",
|
|
258
|
+
types: "./dist/src/stc.d.ts",
|
|
259
|
+
},
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
const main = async () => {
|
|
263
|
+
const cmdArgs = parseCommandLineArgs();
|
|
264
|
+
|
|
265
|
+
if (cmdArgs.help) {
|
|
266
|
+
displayHelp();
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
const packageInfo = await promptForPackageInfo(cmdArgs.useDefaults, cmdArgs);
|
|
271
|
+
|
|
272
|
+
let scripts: Record<string, string>;
|
|
273
|
+
|
|
274
|
+
if (packageInfo.type === "stc-project") {
|
|
275
|
+
scripts = {
|
|
276
|
+
"build-tsc": "tsc -p .",
|
|
277
|
+
build: "npm run build-tsc",
|
|
278
|
+
clean: "rimraf dist/ .temp/",
|
|
279
|
+
test: "vitest run",
|
|
280
|
+
"test:watch": "vitest -w",
|
|
281
|
+
"watch-tsc": "tsc -p . --watch",
|
|
282
|
+
watch: "npm run watch-tsc",
|
|
283
|
+
};
|
|
284
|
+
} else {
|
|
285
|
+
scripts = {
|
|
286
|
+
"build-src": "babel src -d dist/src --extensions .ts,.tsx",
|
|
287
|
+
"build-tsc": "tsc -p .",
|
|
288
|
+
build: "npm run build-tsc && npm run build-src",
|
|
289
|
+
clean: "rimraf dist/ .temp/",
|
|
290
|
+
test: "vitest run",
|
|
291
|
+
"test:watch": "vitest -w",
|
|
292
|
+
"watch-src": "babel src -d dist/src --extensions '.ts,.tsx' --watch",
|
|
293
|
+
"watch-tsc": "tsc -p . --watch",
|
|
294
|
+
watch:
|
|
295
|
+
'concurrently --kill-others "npm run watch-tsc" "npm run watch-src"',
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// Map dependencies to their versions with filtering based on project type
|
|
300
|
+
const deps = Object.fromEntries(
|
|
301
|
+
depsInfo.dependencies
|
|
302
|
+
.filter((dep: any) =>
|
|
303
|
+
packageInfo.type === "stc-project" ? dep.stc : dep.jsx,
|
|
304
|
+
)
|
|
305
|
+
.map((dep: any) => [dep.package, depsVersions[dep.package]]),
|
|
306
|
+
);
|
|
307
|
+
|
|
308
|
+
const devDeps = Object.fromEntries(
|
|
309
|
+
depsInfo.devDependencies
|
|
310
|
+
.filter((dep: any) =>
|
|
311
|
+
packageInfo.type === "stc-project" ? dep.stc : dep.jsx,
|
|
312
|
+
)
|
|
313
|
+
.map((dep: any) => [dep.package, depsVersions[dep.package]]),
|
|
314
|
+
);
|
|
315
|
+
|
|
316
|
+
const files = (
|
|
317
|
+
<Output>
|
|
318
|
+
<PackageJsonFile
|
|
319
|
+
type="module"
|
|
320
|
+
name={packageInfo.name}
|
|
321
|
+
version={packageInfo.version}
|
|
322
|
+
description={packageInfo.description}
|
|
323
|
+
exports={exports}
|
|
324
|
+
dependencies={deps}
|
|
325
|
+
devDependencies={devDeps}
|
|
326
|
+
license={packageInfo.license}
|
|
327
|
+
scripts={scripts}
|
|
328
|
+
author={packageInfo.author}
|
|
329
|
+
repository={
|
|
330
|
+
packageInfo.repository ?
|
|
331
|
+
{ type: "git", url: packageInfo.repository }
|
|
332
|
+
: undefined
|
|
333
|
+
}
|
|
334
|
+
keywords={packageInfo.keywords}
|
|
335
|
+
/>
|
|
336
|
+
<SourceDirectory path="src">
|
|
337
|
+
<SourceDirectory path="components">
|
|
338
|
+
<Show when={packageInfo.type === "library"}>
|
|
339
|
+
<SourceDirectory path="stc">
|
|
340
|
+
<SourceFile path="index.ts">
|
|
341
|
+
import * as jsx from "../index.js";
|
|
342
|
+
</SourceFile>
|
|
343
|
+
</SourceDirectory>
|
|
344
|
+
</Show>
|
|
345
|
+
<SourceFile path="index.ts">// barrel file for components</SourceFile>
|
|
346
|
+
<SourceFile
|
|
347
|
+
path={
|
|
348
|
+
packageInfo.type === "stc-project" ?
|
|
349
|
+
"ExampleComponent.ts"
|
|
350
|
+
: "ExampleComponent.tsx"
|
|
351
|
+
}
|
|
352
|
+
>
|
|
353
|
+
{code`
|
|
354
|
+
export interface ExampleComponentProps {}
|
|
355
|
+
|
|
356
|
+
export function ExampleComponent(props: ExampleComponentProps) {
|
|
357
|
+
|
|
358
|
+
}
|
|
359
|
+
`}
|
|
360
|
+
</SourceFile>
|
|
361
|
+
</SourceDirectory>
|
|
362
|
+
<SourceFile path="index.ts">
|
|
363
|
+
export * from "./components/index.js";
|
|
364
|
+
</SourceFile>
|
|
365
|
+
</SourceDirectory>
|
|
366
|
+
<Show when={packageInfo.type !== "stc-project"}>
|
|
367
|
+
<SourceFile path="babel.config.cjs">
|
|
368
|
+
{code`
|
|
369
|
+
module.exports = {
|
|
370
|
+
sourceMaps: true,
|
|
371
|
+
presets: [
|
|
372
|
+
"@babel/preset-typescript",
|
|
373
|
+
["@alloy-js/babel-preset"],
|
|
374
|
+
],
|
|
375
|
+
};
|
|
376
|
+
`}
|
|
377
|
+
</SourceFile>
|
|
378
|
+
</Show>
|
|
379
|
+
<SourceFile path="tsconfig.json">
|
|
380
|
+
{code`
|
|
381
|
+
{
|
|
382
|
+
"compilerOptions": {
|
|
383
|
+
"lib": ["es2023", "DOM"],
|
|
384
|
+
"module": "NodeNext",
|
|
385
|
+
"moduleResolution": "NodeNext",
|
|
386
|
+
"target": "es2022",
|
|
387
|
+
"strict": true,
|
|
388
|
+
"skipLibCheck": true,
|
|
389
|
+
"isolatedModules": true,
|
|
390
|
+
"declaration": true,
|
|
391
|
+
"sourceMap": true,
|
|
392
|
+
"declarationMap": true,
|
|
393
|
+
"composite": true,
|
|
394
|
+
"incremental": true,
|
|
395
|
+
"outDir": "dist"${
|
|
396
|
+
packageInfo.type === "stc-project" ?
|
|
397
|
+
""
|
|
398
|
+
: code`
|
|
399
|
+
,
|
|
400
|
+
"jsx": "preserve",
|
|
401
|
+
"jsxImportSource": "@alloy-js/core",
|
|
402
|
+
"emitDeclarationOnly": true
|
|
403
|
+
`
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"include": [
|
|
407
|
+
"src/**/*.ts",
|
|
408
|
+
"test/**/*.ts"${
|
|
409
|
+
packageInfo.type === "stc-project" ?
|
|
410
|
+
""
|
|
411
|
+
: code`
|
|
412
|
+
,
|
|
413
|
+
"src/**/*.tsx",
|
|
414
|
+
"test/**/*.tsx",
|
|
415
|
+
`
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
],
|
|
419
|
+
"exclude": ["node_modules", "dist"]
|
|
420
|
+
}
|
|
421
|
+
`}
|
|
422
|
+
</SourceFile>
|
|
423
|
+
|
|
424
|
+
<Show when={packageInfo.type !== "stc-project"}>
|
|
425
|
+
<SourceFile path="vitest.config.ts">
|
|
426
|
+
{code`
|
|
427
|
+
import { babel } from "@rollup/plugin-babel";
|
|
428
|
+
import { defineConfig } from "vitest/config";
|
|
429
|
+
|
|
430
|
+
export default defineConfig({
|
|
431
|
+
esbuild: {
|
|
432
|
+
jsx: "preserve",
|
|
433
|
+
sourcemap: "both",
|
|
434
|
+
},
|
|
435
|
+
plugins: [
|
|
436
|
+
babel({
|
|
437
|
+
inputSourceMap: true as any,
|
|
438
|
+
sourceMaps: "both",
|
|
439
|
+
babelHelpers: "bundled",
|
|
440
|
+
extensions: [".ts", ".tsx"],
|
|
441
|
+
presets: ["@babel/preset-typescript", ["@alloy-js/babel-preset"]],
|
|
442
|
+
}),
|
|
443
|
+
],
|
|
444
|
+
});
|
|
445
|
+
`}
|
|
446
|
+
</SourceFile>
|
|
447
|
+
</Show>
|
|
448
|
+
</Output>
|
|
449
|
+
);
|
|
450
|
+
writeOutput(render(files));
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
// Execute main function
|
|
454
|
+
main().catch(console.error);
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"emitDeclarationOnly": true,
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"outDir": "dist"
|
|
7
|
+
},
|
|
8
|
+
"include": [
|
|
9
|
+
"src/**/*.ts",
|
|
10
|
+
"src/**/*.tsx",
|
|
11
|
+
"test/**/*.ts",
|
|
12
|
+
"test/**/*.tsx",
|
|
13
|
+
"testing/**/*.ts",
|
|
14
|
+
"testing/**/*.d.ts"
|
|
15
|
+
],
|
|
16
|
+
"exclude": ["node_modules", "dist"]
|
|
17
|
+
}
|