@configjs/cli 1.1.17 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{angular-command-WRBFDIV6.js → angular-command-HAJJ3AU4.js} +5 -5
- package/dist/{check-5QZOSS2F.js → check-SJ6EEYEM.js} +3 -3
- package/dist/{chunk-56AR5ZW2.js → chunk-FDB6YKMN.js} +1 -1
- package/dist/{chunk-5NXT5HCC.js → chunk-HI7RYD6W.js} +20 -17
- package/dist/{chunk-5FBN3L7R.js → chunk-ORIWNBOE.js} +8 -8
- package/dist/{chunk-IY4KX4KL.js → chunk-RWT2AFO5.js} +62 -1
- package/dist/{chunk-F3VNGA2S.js → chunk-Y4XYC7QV.js} +1 -1
- package/dist/cli.js +10 -10
- package/dist/{installed-DI77OQIT.js → installed-QMJZIZNC.js} +2 -2
- package/dist/{list-HWRVKXWR.js → list-7U2LCYT3.js} +2 -2
- package/dist/{nextjs-command-H5WRXK5R.js → nextjs-command-I744IPBX.js} +5 -5
- package/dist/{nextjs-installer-UM3YQT5Z.js → nextjs-installer-OFY5BQC4.js} +1 -1
- package/dist/{react-command-XNOHP6WY.js → react-command-PLMHMFFB.js} +5 -5
- package/dist/{remove-AJK2IHVJ.js → remove-4ZNQR6ZR.js} +2 -2
- package/dist/{svelte-command-Q7UBBWXP.js → svelte-command-XH7PDSE3.js} +5 -5
- package/dist/{svelte-installer-WLGID6Z2.js → svelte-installer-UP3KDZSY.js} +1 -1
- package/dist/{vite-installer-U7XUU3D7.js → vite-installer-EE2LE76G.js} +1 -1
- package/dist/{vue-command-FL6OQ6GV.js → vue-command-SZQJZQ6R.js} +5 -5
- package/dist/{vue-installer-BH2O2Y3M.js → vue-installer-LEGLVD77.js} +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ORIWNBOE.js";
|
|
5
|
+
import "./chunk-FDB6YKMN.js";
|
|
6
|
+
import "./chunk-RWT2AFO5.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
9
9
|
detectContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y4XYC7QV.js";
|
|
11
11
|
import "./chunk-V2IBYLVH.js";
|
|
12
12
|
import "./chunk-KAMPBTFG.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HI7RYD6W.js";
|
|
14
14
|
import "./chunk-VN4XTFDK.js";
|
|
15
15
|
import {
|
|
16
16
|
getTranslations
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompatibilityValidator,
|
|
3
3
|
allCompatibilityRules
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FDB6YKMN.js";
|
|
5
5
|
import {
|
|
6
6
|
ConfigSanitizer,
|
|
7
7
|
pluginRegistry
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RWT2AFO5.js";
|
|
9
9
|
import "./chunk-V2IBYLVH.js";
|
|
10
10
|
import {
|
|
11
11
|
getPathValidationErrorMessage,
|
|
12
12
|
validatePathInProjectWithSymlinks
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HI7RYD6W.js";
|
|
14
14
|
import {
|
|
15
15
|
logger
|
|
16
16
|
} from "./chunk-VN4XTFDK.js";
|
|
@@ -4,8 +4,11 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/core/path-validator.ts
|
|
6
6
|
import { resolve, normalize, sep, isAbsolute, dirname } from "path";
|
|
7
|
-
import {
|
|
7
|
+
import { realpath as realpathCallback } from "fs/promises";
|
|
8
|
+
import fs from "fs-extra";
|
|
8
9
|
import { z } from "zod";
|
|
10
|
+
var pathExists = fs.pathExists;
|
|
11
|
+
var realpath = realpathCallback;
|
|
9
12
|
var pathResolutionSchema = z.object({
|
|
10
13
|
projectRoot: z.string().min(1, "Project root cannot be empty").refine(
|
|
11
14
|
(path) => isAbsolute(path),
|
|
@@ -108,7 +111,7 @@ function getPathValidationErrorMessage(error) {
|
|
|
108
111
|
import { resolve as resolve3, dirname as dirname3, extname } from "path";
|
|
109
112
|
|
|
110
113
|
// src/core/fs-adapter.ts
|
|
111
|
-
import
|
|
114
|
+
import fs2 from "fs-extra";
|
|
112
115
|
import { resolve as resolve2, dirname as dirname2 } from "path";
|
|
113
116
|
var FileSystemAdapter = class {
|
|
114
117
|
/**
|
|
@@ -121,7 +124,7 @@ var FileSystemAdapter = class {
|
|
|
121
124
|
* Obtient l'implémentation du filesystem
|
|
122
125
|
*/
|
|
123
126
|
getFs() {
|
|
124
|
-
return this.fsImpl ||
|
|
127
|
+
return this.fsImpl || fs2;
|
|
125
128
|
}
|
|
126
129
|
/**
|
|
127
130
|
* Normalise un chemin (résout les chemins relatifs)
|
|
@@ -141,7 +144,7 @@ var FileSystemAdapter = class {
|
|
|
141
144
|
const buffer = content;
|
|
142
145
|
return buffer.toString(encoding);
|
|
143
146
|
} else {
|
|
144
|
-
const content = await
|
|
147
|
+
const content = await fs2.readFile(fullPath, encoding);
|
|
145
148
|
if (typeof content === "string") {
|
|
146
149
|
return content;
|
|
147
150
|
}
|
|
@@ -157,7 +160,7 @@ var FileSystemAdapter = class {
|
|
|
157
160
|
if (this.fsImpl) {
|
|
158
161
|
await implementation.promises.writeFile(fullPath, content, encoding);
|
|
159
162
|
} else {
|
|
160
|
-
await
|
|
163
|
+
await fs2.writeFile(fullPath, content, encoding);
|
|
161
164
|
}
|
|
162
165
|
}
|
|
163
166
|
async mkdir(path, _options) {
|
|
@@ -166,7 +169,7 @@ var FileSystemAdapter = class {
|
|
|
166
169
|
if (this.fsImpl) {
|
|
167
170
|
await implementation.promises.mkdir(fullPath, { recursive: true });
|
|
168
171
|
} else {
|
|
169
|
-
await
|
|
172
|
+
await fs2.ensureDir(fullPath);
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
async readdir(path) {
|
|
@@ -175,7 +178,7 @@ var FileSystemAdapter = class {
|
|
|
175
178
|
const entries = this.fsImpl.readdirSync(fullPath);
|
|
176
179
|
return Promise.resolve(entries.map((entry) => String(entry)));
|
|
177
180
|
} else {
|
|
178
|
-
return await
|
|
181
|
+
return await fs2.readdir(fullPath);
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
async stat(path) {
|
|
@@ -189,7 +192,7 @@ var FileSystemAdapter = class {
|
|
|
189
192
|
mtime: stats.mtime
|
|
190
193
|
};
|
|
191
194
|
} else {
|
|
192
|
-
const stats = await
|
|
195
|
+
const stats = await fs2.stat(fullPath);
|
|
193
196
|
return {
|
|
194
197
|
isFile: () => stats.isFile(),
|
|
195
198
|
isDirectory: () => stats.isDirectory(),
|
|
@@ -208,7 +211,7 @@ var FileSystemAdapter = class {
|
|
|
208
211
|
return false;
|
|
209
212
|
}
|
|
210
213
|
} else {
|
|
211
|
-
return await
|
|
214
|
+
return await fs2.pathExists(fullPath);
|
|
212
215
|
}
|
|
213
216
|
}
|
|
214
217
|
async readJson(path) {
|
|
@@ -217,7 +220,7 @@ var FileSystemAdapter = class {
|
|
|
217
220
|
const content = await this.readFile(fullPath);
|
|
218
221
|
return JSON.parse(content);
|
|
219
222
|
} else {
|
|
220
|
-
return await
|
|
223
|
+
return await fs2.readJson(fullPath);
|
|
221
224
|
}
|
|
222
225
|
}
|
|
223
226
|
async writeJson(path, data, options) {
|
|
@@ -228,7 +231,7 @@ var FileSystemAdapter = class {
|
|
|
228
231
|
const content = JSON.stringify(data, null, options?.spaces ?? 2);
|
|
229
232
|
await this.writeFile(fullPath, content);
|
|
230
233
|
} else {
|
|
231
|
-
await
|
|
234
|
+
await fs2.writeJson(fullPath, data, {
|
|
232
235
|
spaces: options?.spaces ?? 2,
|
|
233
236
|
EOL: options?.EOL ?? "\n"
|
|
234
237
|
});
|
|
@@ -243,7 +246,7 @@ var FileSystemAdapter = class {
|
|
|
243
246
|
const content = await this.readFile(srcPath);
|
|
244
247
|
await this.writeFile(destPath, content);
|
|
245
248
|
} else {
|
|
246
|
-
await
|
|
249
|
+
await fs2.copyFile(srcPath, destPath);
|
|
247
250
|
}
|
|
248
251
|
}
|
|
249
252
|
async remove(path) {
|
|
@@ -260,7 +263,7 @@ var FileSystemAdapter = class {
|
|
|
260
263
|
} catch {
|
|
261
264
|
}
|
|
262
265
|
} else {
|
|
263
|
-
await
|
|
266
|
+
await fs2.remove(fullPath);
|
|
264
267
|
}
|
|
265
268
|
}
|
|
266
269
|
// ===== Sync Operations (pour compatibilité) =====
|
|
@@ -275,7 +278,7 @@ var FileSystemAdapter = class {
|
|
|
275
278
|
const buffer = content;
|
|
276
279
|
return buffer.toString(encoding);
|
|
277
280
|
} else {
|
|
278
|
-
const content =
|
|
281
|
+
const content = fs2.readFileSync(fullPath, encoding);
|
|
279
282
|
if (typeof content === "string") {
|
|
280
283
|
return content;
|
|
281
284
|
}
|
|
@@ -293,7 +296,7 @@ var FileSystemAdapter = class {
|
|
|
293
296
|
if (this.fsImpl) {
|
|
294
297
|
implementation.writeFileSync(fullPath, content);
|
|
295
298
|
} else {
|
|
296
|
-
|
|
299
|
+
fs2.writeFileSync(fullPath, content);
|
|
297
300
|
}
|
|
298
301
|
}
|
|
299
302
|
existsSync(path) {
|
|
@@ -307,7 +310,7 @@ var FileSystemAdapter = class {
|
|
|
307
310
|
return false;
|
|
308
311
|
}
|
|
309
312
|
} else {
|
|
310
|
-
return
|
|
313
|
+
return fs2.existsSync(fullPath);
|
|
311
314
|
}
|
|
312
315
|
}
|
|
313
316
|
mkdirSync(path, _options) {
|
|
@@ -316,7 +319,7 @@ var FileSystemAdapter = class {
|
|
|
316
319
|
if (this.fsImpl) {
|
|
317
320
|
implementation.mkdirSync(fullPath, { recursive: true });
|
|
318
321
|
} else {
|
|
319
|
-
|
|
322
|
+
fs2.ensureDirSync(fullPath);
|
|
320
323
|
}
|
|
321
324
|
}
|
|
322
325
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompatibilityValidator,
|
|
3
3
|
allCompatibilityRules
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FDB6YKMN.js";
|
|
5
5
|
import {
|
|
6
6
|
BackupManager,
|
|
7
7
|
ConfigWriter,
|
|
8
8
|
getPluginsByCategory,
|
|
9
9
|
getRecommendedPlugins,
|
|
10
10
|
pluginRegistry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RWT2AFO5.js";
|
|
12
12
|
import {
|
|
13
13
|
PluginTracker
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Y4XYC7QV.js";
|
|
15
15
|
import {
|
|
16
16
|
SpinnerManager
|
|
17
17
|
} from "./chunk-KAMPBTFG.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
checkPathExists,
|
|
20
20
|
readFileContent,
|
|
21
21
|
writeFileContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HI7RYD6W.js";
|
|
23
23
|
import {
|
|
24
24
|
getModuleLogger,
|
|
25
25
|
logger
|
|
@@ -45,7 +45,7 @@ var frameworkRegistry = {
|
|
|
45
45
|
return await promptViteSetup(language);
|
|
46
46
|
},
|
|
47
47
|
createProject: async (options, currentDir, language) => {
|
|
48
|
-
const { createViteProject } = await import("./vite-installer-
|
|
48
|
+
const { createViteProject } = await import("./vite-installer-EE2LE76G.js");
|
|
49
49
|
return await createViteProject(
|
|
50
50
|
options,
|
|
51
51
|
currentDir,
|
|
@@ -69,7 +69,7 @@ var frameworkRegistry = {
|
|
|
69
69
|
return await promptNextjsSetup(language);
|
|
70
70
|
},
|
|
71
71
|
createProject: async (options, currentDir, language) => {
|
|
72
|
-
const { createNextjsProject } = await import("./nextjs-installer-
|
|
72
|
+
const { createNextjsProject } = await import("./nextjs-installer-OFY5BQC4.js");
|
|
73
73
|
return await createNextjsProject(
|
|
74
74
|
options,
|
|
75
75
|
currentDir,
|
|
@@ -97,7 +97,7 @@ var frameworkRegistry = {
|
|
|
97
97
|
return await promptVueSetup(language);
|
|
98
98
|
},
|
|
99
99
|
createProject: async (options, currentDir, language) => {
|
|
100
|
-
const { createVueProject } = await import("./vue-installer-
|
|
100
|
+
const { createVueProject } = await import("./vue-installer-LEGLVD77.js");
|
|
101
101
|
return await createVueProject(
|
|
102
102
|
options,
|
|
103
103
|
currentDir,
|
|
@@ -121,7 +121,7 @@ var frameworkRegistry = {
|
|
|
121
121
|
return await promptSvelteSetup(language);
|
|
122
122
|
},
|
|
123
123
|
createProject: async (options, currentDir, language) => {
|
|
124
|
-
const { createSvelteProject } = await import("./svelte-installer-
|
|
124
|
+
const { createSvelteProject } = await import("./svelte-installer-UP3KDZSY.js");
|
|
125
125
|
return await createSvelteProject(
|
|
126
126
|
options,
|
|
127
127
|
currentDir,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
readFileContent,
|
|
9
9
|
writeFileContent,
|
|
10
10
|
writePackageJson
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HI7RYD6W.js";
|
|
12
12
|
import {
|
|
13
13
|
getModuleLogger,
|
|
14
14
|
logger
|
|
@@ -7519,6 +7519,31 @@ var reduxToolkitPlugin = {
|
|
|
7519
7519
|
`Created App.${ctx.typescript ? "tsx" : "jsx"} with Provider`
|
|
7520
7520
|
);
|
|
7521
7521
|
}
|
|
7522
|
+
const viteConfigPath = join22(ctx.projectRoot, `vite.config.${extension}`);
|
|
7523
|
+
const viteConfigExists = await checkPathExists(
|
|
7524
|
+
viteConfigPath,
|
|
7525
|
+
ctx.fsAdapter
|
|
7526
|
+
);
|
|
7527
|
+
if (viteConfigExists) {
|
|
7528
|
+
const viteConfigContent = await readFileContent(
|
|
7529
|
+
viteConfigPath,
|
|
7530
|
+
"utf-8",
|
|
7531
|
+
ctx.fsAdapter
|
|
7532
|
+
);
|
|
7533
|
+
const updatedViteContent = updateViteConfigForRedux(viteConfigContent);
|
|
7534
|
+
if (updatedViteContent !== viteConfigContent) {
|
|
7535
|
+
await writer.writeFile(viteConfigPath, updatedViteContent, {
|
|
7536
|
+
backup: true
|
|
7537
|
+
});
|
|
7538
|
+
files.push({
|
|
7539
|
+
type: "modify",
|
|
7540
|
+
path: normalizePath(viteConfigPath),
|
|
7541
|
+
content: updatedViteContent,
|
|
7542
|
+
backup: true
|
|
7543
|
+
});
|
|
7544
|
+
logger25.info(`Updated vite.config.${extension} for Redux Toolkit`);
|
|
7545
|
+
}
|
|
7546
|
+
}
|
|
7522
7547
|
return {
|
|
7523
7548
|
files,
|
|
7524
7549
|
success: true,
|
|
@@ -7844,6 +7869,42 @@ export default App
|
|
|
7844
7869
|
}
|
|
7845
7870
|
return modifiedContent;
|
|
7846
7871
|
}
|
|
7872
|
+
function updateViteConfigForRedux(content) {
|
|
7873
|
+
if (content.includes("@reduxjs/toolkit")) {
|
|
7874
|
+
return content;
|
|
7875
|
+
}
|
|
7876
|
+
const defineConfigMatch = content.match(
|
|
7877
|
+
/export\s+default\s+defineConfig\s*\(/
|
|
7878
|
+
);
|
|
7879
|
+
const exportDefaultMatch = content.match(/export\s+default\s*\{/);
|
|
7880
|
+
if (!defineConfigMatch && !exportDefaultMatch) {
|
|
7881
|
+
return content;
|
|
7882
|
+
}
|
|
7883
|
+
if (defineConfigMatch) {
|
|
7884
|
+
const insertPos = content.lastIndexOf("})");
|
|
7885
|
+
if (insertPos === -1) return content;
|
|
7886
|
+
const beforeBrace = content.substring(0, insertPos);
|
|
7887
|
+
const afterBrace = content.substring(insertPos);
|
|
7888
|
+
if (!beforeBrace.includes("optimizeDeps")) {
|
|
7889
|
+
return beforeBrace + `,
|
|
7890
|
+
optimizeDeps: {
|
|
7891
|
+
include: ['@reduxjs/toolkit', 'react-redux'],
|
|
7892
|
+
}` + afterBrace;
|
|
7893
|
+
}
|
|
7894
|
+
} else if (exportDefaultMatch) {
|
|
7895
|
+
const insertPos = content.lastIndexOf("}");
|
|
7896
|
+
if (insertPos === -1) return content;
|
|
7897
|
+
const beforeBrace = content.substring(0, insertPos);
|
|
7898
|
+
const afterBrace = content.substring(insertPos);
|
|
7899
|
+
if (!beforeBrace.includes("optimizeDeps")) {
|
|
7900
|
+
return beforeBrace + `,
|
|
7901
|
+
optimizeDeps: {
|
|
7902
|
+
include: ['@reduxjs/toolkit', 'react-redux'],
|
|
7903
|
+
}` + afterBrace;
|
|
7904
|
+
}
|
|
7905
|
+
}
|
|
7906
|
+
return content;
|
|
7907
|
+
}
|
|
7847
7908
|
|
|
7848
7909
|
// src/plugins/state/zustand.ts
|
|
7849
7910
|
import { resolve as resolve16, join as join23 } from "path";
|
package/dist/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ import "./chunk-QGM4M3NI.js";
|
|
|
9
9
|
import { Command } from "commander";
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "1.1.
|
|
12
|
+
var version = "1.1.19";
|
|
13
13
|
|
|
14
14
|
// src/cli.ts
|
|
15
15
|
initializeCLILogging();
|
|
@@ -18,7 +18,7 @@ program.name("confjs").description("Configure your frontend stack, instantly").v
|
|
|
18
18
|
program.command("react").description("Configure a React project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
|
|
19
19
|
async (options) => {
|
|
20
20
|
try {
|
|
21
|
-
const { ReactCommand } = await import("./react-command-
|
|
21
|
+
const { ReactCommand } = await import("./react-command-PLMHMFFB.js");
|
|
22
22
|
const command = new ReactCommand();
|
|
23
23
|
await command.execute(options);
|
|
24
24
|
} catch (error) {
|
|
@@ -31,7 +31,7 @@ program.command("react").description("Configure a React project").option("-y, --
|
|
|
31
31
|
program.command("nextjs").description("Configure a Next.js project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
|
|
32
32
|
async (options) => {
|
|
33
33
|
try {
|
|
34
|
-
const { NextjsCommand } = await import("./nextjs-command-
|
|
34
|
+
const { NextjsCommand } = await import("./nextjs-command-I744IPBX.js");
|
|
35
35
|
const command = new NextjsCommand();
|
|
36
36
|
await command.execute(options);
|
|
37
37
|
} catch (error) {
|
|
@@ -44,7 +44,7 @@ program.command("nextjs").description("Configure a Next.js project").option("-y,
|
|
|
44
44
|
program.command("vue").description("Configure a Vue.js project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
|
|
45
45
|
async (options) => {
|
|
46
46
|
try {
|
|
47
|
-
const { VueCommand } = await import("./vue-command-
|
|
47
|
+
const { VueCommand } = await import("./vue-command-SZQJZQ6R.js");
|
|
48
48
|
const command = new VueCommand();
|
|
49
49
|
await command.execute(options);
|
|
50
50
|
} catch (error) {
|
|
@@ -57,7 +57,7 @@ program.command("vue").description("Configure a Vue.js project").option("-y, --y
|
|
|
57
57
|
program.command("svelte").description("Configure a Svelte project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
|
|
58
58
|
async (options) => {
|
|
59
59
|
try {
|
|
60
|
-
const { SvelteCommand } = await import("./svelte-command-
|
|
60
|
+
const { SvelteCommand } = await import("./svelte-command-XH7PDSE3.js");
|
|
61
61
|
const command = new SvelteCommand();
|
|
62
62
|
await command.execute(options);
|
|
63
63
|
} catch (error) {
|
|
@@ -70,7 +70,7 @@ program.command("svelte").description("Configure a Svelte project").option("-y,
|
|
|
70
70
|
program.command("angular").description("Configure an Angular project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
|
|
71
71
|
async (options) => {
|
|
72
72
|
try {
|
|
73
|
-
const { AngularCommand } = await import("./angular-command-
|
|
73
|
+
const { AngularCommand } = await import("./angular-command-HAJJ3AU4.js");
|
|
74
74
|
const command = new AngularCommand();
|
|
75
75
|
await command.execute(options);
|
|
76
76
|
} catch (error) {
|
|
@@ -82,7 +82,7 @@ program.command("angular").description("Configure an Angular project").option("-
|
|
|
82
82
|
);
|
|
83
83
|
program.command("list").description("List available libraries").option("-c, --category <category>", "Filter by category").action(async (options) => {
|
|
84
84
|
try {
|
|
85
|
-
const { listLibraries } = await import("./list-
|
|
85
|
+
const { listLibraries } = await import("./list-7U2LCYT3.js");
|
|
86
86
|
listLibraries(options);
|
|
87
87
|
} catch (error) {
|
|
88
88
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -92,7 +92,7 @@ program.command("list").description("List available libraries").option("-c, --ca
|
|
|
92
92
|
});
|
|
93
93
|
program.command("check").description("Check compatibility without installing").option("-c, --config <file>", "Configuration file to check").action(async (options) => {
|
|
94
94
|
try {
|
|
95
|
-
const { checkCompatibility } = await import("./check-
|
|
95
|
+
const { checkCompatibility } = await import("./check-SJ6EEYEM.js");
|
|
96
96
|
await checkCompatibility(options);
|
|
97
97
|
} catch (error) {
|
|
98
98
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -102,7 +102,7 @@ program.command("check").description("Check compatibility without installing").o
|
|
|
102
102
|
});
|
|
103
103
|
program.command("installed").description("List installed plugins").action(async () => {
|
|
104
104
|
try {
|
|
105
|
-
const { installedCommand } = await import("./installed-
|
|
105
|
+
const { installedCommand } = await import("./installed-QMJZIZNC.js");
|
|
106
106
|
await installedCommand();
|
|
107
107
|
} catch (error) {
|
|
108
108
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -112,7 +112,7 @@ program.command("installed").description("List installed plugins").action(async
|
|
|
112
112
|
});
|
|
113
113
|
program.command("remove <plugin>").description("Remove an installed plugin").action(async (plugin) => {
|
|
114
114
|
try {
|
|
115
|
-
const { removeCommand } = await import("./remove-
|
|
115
|
+
const { removeCommand } = await import("./remove-4ZNQR6ZR.js");
|
|
116
116
|
await removeCommand(plugin);
|
|
117
117
|
} catch (error) {
|
|
118
118
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ORIWNBOE.js";
|
|
5
|
+
import "./chunk-FDB6YKMN.js";
|
|
6
|
+
import "./chunk-RWT2AFO5.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
9
9
|
detectContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y4XYC7QV.js";
|
|
11
11
|
import "./chunk-V2IBYLVH.js";
|
|
12
12
|
import "./chunk-KAMPBTFG.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HI7RYD6W.js";
|
|
14
14
|
import "./chunk-VN4XTFDK.js";
|
|
15
15
|
import {
|
|
16
16
|
getTranslations
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ORIWNBOE.js";
|
|
5
|
+
import "./chunk-FDB6YKMN.js";
|
|
6
|
+
import "./chunk-RWT2AFO5.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
9
9
|
detectContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y4XYC7QV.js";
|
|
11
11
|
import "./chunk-V2IBYLVH.js";
|
|
12
12
|
import "./chunk-KAMPBTFG.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HI7RYD6W.js";
|
|
14
14
|
import "./chunk-VN4XTFDK.js";
|
|
15
15
|
import {
|
|
16
16
|
getTranslations
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ORIWNBOE.js";
|
|
5
|
+
import "./chunk-FDB6YKMN.js";
|
|
6
|
+
import "./chunk-RWT2AFO5.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
9
9
|
detectContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y4XYC7QV.js";
|
|
11
11
|
import "./chunk-V2IBYLVH.js";
|
|
12
12
|
import "./chunk-KAMPBTFG.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HI7RYD6W.js";
|
|
14
14
|
import "./chunk-VN4XTFDK.js";
|
|
15
15
|
import {
|
|
16
16
|
getTranslations
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseFrameworkCommand,
|
|
3
3
|
getFrameworkMetadata
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ORIWNBOE.js";
|
|
5
|
+
import "./chunk-FDB6YKMN.js";
|
|
6
|
+
import "./chunk-RWT2AFO5.js";
|
|
7
7
|
import {
|
|
8
8
|
DetectionError,
|
|
9
9
|
detectContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y4XYC7QV.js";
|
|
11
11
|
import "./chunk-V2IBYLVH.js";
|
|
12
12
|
import "./chunk-KAMPBTFG.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HI7RYD6W.js";
|
|
14
14
|
import "./chunk-VN4XTFDK.js";
|
|
15
15
|
import {
|
|
16
16
|
getTranslations
|
package/package.json
CHANGED