ai-localize-cli 1.0.1 → 1.0.3
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/cli.js +2 -1
- package/package.json +5 -5
- package/src/commands/init.ts +1 -1
- package/tsup.config.ts +11 -0
package/dist/cli.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
"use strict";
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
@@ -60,7 +61,7 @@ function initCommand() {
|
|
|
60
61
|
const cwd = opts.cwd;
|
|
61
62
|
let framework = opts.framework;
|
|
62
63
|
if (!framework) {
|
|
63
|
-
framework = (0, import_ai_localize_framework_detectors.detectFramework)(cwd);
|
|
64
|
+
framework = (0, import_ai_localize_framework_detectors.detectFramework)(cwd).framework;
|
|
64
65
|
spinner.succeed("Detected framework: " + import_chalk2.default.cyan(framework));
|
|
65
66
|
} else {
|
|
66
67
|
spinner.succeed("Using framework: " + import_chalk2.default.cyan(framework));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-localize-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "CLI for ai-localize-core: scan, extract, validate, migrate CDN",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ai-localize": "./dist/cli.js"
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"ora": "^8.0.1",
|
|
13
13
|
"inquirer": "^9.2.12",
|
|
14
14
|
"ai-localize-shared": "1.0.1",
|
|
15
|
-
"ai-localize-framework-detectors": "1.0.1",
|
|
16
|
-
"ai-localize-config": "1.0.1",
|
|
17
15
|
"ai-localize-codemods": "1.0.1",
|
|
16
|
+
"ai-localize-config": "1.0.1",
|
|
18
17
|
"ai-localize-scanner": "1.0.1",
|
|
19
|
-
"ai-localize-
|
|
18
|
+
"ai-localize-framework-detectors": "1.0.1",
|
|
20
19
|
"ai-localize-locale-engine": "1.0.1",
|
|
20
|
+
"ai-localize-reporting": "1.0.1",
|
|
21
21
|
"ai-localize-aws-cloudfront": "1.0.1",
|
|
22
|
-
"ai-localize-
|
|
22
|
+
"ai-localize-validators": "1.0.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/inquirer": "^9.0.7",
|
package/src/commands/init.ts
CHANGED
|
@@ -17,7 +17,7 @@ export function initCommand(): Command {
|
|
|
17
17
|
const cwd = opts.cwd as string;
|
|
18
18
|
let framework = opts.framework as string;
|
|
19
19
|
if (!framework) {
|
|
20
|
-
framework = detectFramework(cwd);
|
|
20
|
+
framework = detectFramework(cwd).framework;
|
|
21
21
|
spinner.succeed('Detected framework: ' + chalk.cyan(framework));
|
|
22
22
|
} else {
|
|
23
23
|
spinner.succeed('Using framework: ' + chalk.cyan(framework));
|