@worldware/msg-cli 0.2.0 → 0.2.1

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.
@@ -215,9 +215,8 @@ var CreateProject = class _CreateProject extends import_core.Command {
215
215
  const projectsDir = (0, import_path3.join)(rootDir, i18nDir, "projects");
216
216
  const translationsDir = (0, import_path3.join)(rootDir, l10nDir, "translations");
217
217
  const relPath = calculateRelativePath(projectsDir, translationsDir);
218
- const useTypeScript = (0, import_fs3.existsSync)((0, import_path3.join)(rootDir, "tsconfig.json"));
219
218
  const isEsm = pkg.type === "module";
220
- const ext = useTypeScript ? ".ts" : ".js";
219
+ const ext = ".js";
221
220
  const outPath = (0, import_path3.join)(projectsDir, `${projectName}${ext}`);
222
221
  if ((0, import_fs3.existsSync)(outPath)) {
223
222
  this.error(`A project with the name '${projectName}' already exists.`, { exit: 1 });
@@ -70,9 +70,8 @@ var CreateProject = class _CreateProject extends Command {
70
70
  const projectsDir = join(rootDir, i18nDir, "projects");
71
71
  const translationsDir = join(rootDir, l10nDir, "translations");
72
72
  const relPath = calculateRelativePath(projectsDir, translationsDir);
73
- const useTypeScript = existsSync(join(rootDir, "tsconfig.json"));
74
73
  const isEsm = pkg.type === "module";
75
- const ext = useTypeScript ? ".ts" : ".js";
74
+ const ext = ".js";
76
75
  const outPath = join(projectsDir, `${projectName}${ext}`);
77
76
  if (existsSync(outPath)) {
78
77
  this.error(`A project with the name '${projectName}' already exists.`, { exit: 1 });
@@ -307,7 +307,7 @@ var CreateResource = class _CreateResource extends import_core.Command {
307
307
  { exit: 1 }
308
308
  );
309
309
  }
310
- const ext = pkgInfo.useTypeScript ? ".ts" : ".js";
310
+ const ext = ".js";
311
311
  const outPath = (0, import_path3.join)(resourcesDir, `${title.trim()}.msg${ext}`);
312
312
  if ((0, import_fs3.existsSync)(outPath) && !flags.force) {
313
313
  this.error(
@@ -92,7 +92,7 @@ var CreateResource = class _CreateResource extends Command {
92
92
  { exit: 1 }
93
93
  );
94
94
  }
95
- const ext = pkgInfo.useTypeScript ? ".ts" : ".js";
95
+ const ext = ".js";
96
96
  const outPath = join(resourcesDir, `${title.trim()}.msg${ext}`);
97
97
  if (existsSync(outPath) && !flags.force) {
98
98
  this.error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldware/msg-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "CLI for msg library",
5
5
  "main": "dist/commands/init.cjs",
6
6
  "module": "dist/commands/init.mjs",