i18-fe-automator-beta 2.0.1 → 2.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/commonjs/index.js +3 -2
- package/dist/esm/index.mjs +3 -2
- package/package.json +1 -1
package/dist/commonjs/index.js
CHANGED
|
@@ -2505,10 +2505,11 @@ if (sass) {
|
|
|
2505
2505
|
|
|
2506
2506
|
function translateUtil(appid, key, projectName, isLintFix) {
|
|
2507
2507
|
const { input } = commander.program.opts();
|
|
2508
|
-
|
|
2508
|
+
const normalizedInput = input.replace(/\\/g, "/");
|
|
2509
|
+
let src = [normalizedInput];
|
|
2509
2510
|
const isSrcDirectory = fs.statSync(input).isDirectory();
|
|
2510
2511
|
if (isSrcDirectory) {
|
|
2511
|
-
const directory =
|
|
2512
|
+
const directory = normalizedInput + "/**/*.{js,vue,jsx,ts,tsx}";
|
|
2512
2513
|
src = glob.glob.sync(directory, {
|
|
2513
2514
|
ignore: directory + `/**/node_modules/**`,
|
|
2514
2515
|
});
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2483,10 +2483,11 @@ if (sass) {
|
|
|
2483
2483
|
|
|
2484
2484
|
function translateUtil(appid, key, projectName, isLintFix) {
|
|
2485
2485
|
const { input } = program.opts();
|
|
2486
|
-
|
|
2486
|
+
const normalizedInput = input.replace(/\\/g, "/");
|
|
2487
|
+
let src = [normalizedInput];
|
|
2487
2488
|
const isSrcDirectory = fs.statSync(input).isDirectory();
|
|
2488
2489
|
if (isSrcDirectory) {
|
|
2489
|
-
const directory =
|
|
2490
|
+
const directory = normalizedInput + "/**/*.{js,vue,jsx,ts,tsx}";
|
|
2490
2491
|
src = glob.sync(directory, {
|
|
2491
2492
|
ignore: directory + `/**/node_modules/**`,
|
|
2492
2493
|
});
|