@jay-framework/jay-cli 0.22.2 → 0.23.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -3
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ function checkFileExists(filepath) {
24
24
  });
25
25
  }
26
26
  async function generateFiles(dir, codeGenerationFunction, afterGenerationFunction, outputExtension, destinationDir, compilationTarget, projectRoot) {
27
- const resolvedProjectRoot = projectRoot || process.cwd();
27
+ const resolvedProjectRoot = process.cwd();
28
28
  getLogger().important(chalk.whiteBright("Jay generating files for ", dir));
29
29
  let jayFiles = await findAllJayFiles(dir);
30
30
  getLogger().info(`${dir} ${JSON.stringify(jayFiles)}`);
@@ -71,8 +71,7 @@ async function generateFiles(dir, codeGenerationFunction, afterGenerationFunctio
71
71
  absSourceDir,
72
72
  absDestDir
73
73
  );
74
- } else
75
- destinationGeneratedFileName = generateFileName;
74
+ } else destinationGeneratedFileName = generateFileName;
76
75
  let destinationDirName = path.dirname(destinationGeneratedFileName);
77
76
  if (!await checkFileExists(destinationDirName)) {
78
77
  await promises.mkdir(destinationDirName, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/jay-cli",
3
- "version": "0.22.2",
3
+ "version": "0.23.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "bin": "dist/index.js",
@@ -21,16 +21,16 @@
21
21
  "test:watch": "vitest"
22
22
  },
23
23
  "dependencies": {
24
- "@jay-framework/compiler": "^0.22.2",
25
- "@jay-framework/logger": "^0.22.2",
26
- "@jay-framework/rollup-plugin": "^0.22.2",
24
+ "@jay-framework/compiler": "^0.23.1",
25
+ "@jay-framework/logger": "^0.23.1",
26
+ "@jay-framework/rollup-plugin": "^0.23.1",
27
27
  "chalk": "^4.1.2",
28
28
  "commander": "^14.0.0",
29
29
  "glob": "^10.4.5",
30
30
  "rollup": "^4.9.5"
31
31
  },
32
32
  "devDependencies": {
33
- "@jay-framework/dev-environment": "^0.22.2",
33
+ "@jay-framework/dev-environment": "^0.23.1",
34
34
  "@types/node": "^20.11.5",
35
35
  "@types/shelljs": "^0.8.15",
36
36
  "rimraf": "^5.0.5",