@jay-framework/jay-cli 0.12.0 → 0.14.0
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/index.js +6 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { generateElementFile } from "@jay-framework/compiler";
|
|
|
5
5
|
import { jayDefinitions } from "@jay-framework/rollup-plugin";
|
|
6
6
|
import chalk from "chalk";
|
|
7
7
|
import * as fastGlob from "fast-glob";
|
|
8
|
-
import { JAY_EXTENSION, checkValidationErrors, GenerateTarget, RuntimeMode, JAY_CONTRACT_EXTENSION } from "@jay-framework/compiler-shared";
|
|
8
|
+
import { JAY_EXTENSION, checkValidationErrors, GenerateTarget, RuntimeMode, JAY_CONTRACT_EXTENSION, JAY_ACTION_EXTENSION } from "@jay-framework/compiler-shared";
|
|
9
9
|
import fs, { promises } from "fs";
|
|
10
10
|
import path from "path";
|
|
11
11
|
import { parseJayFile, JAY_IMPORT_RESOLVER } from "@jay-framework/compiler-jay-html";
|
|
@@ -91,11 +91,15 @@ async function generateFiles(dir, codeGenerationFunction, afterGenerationFunctio
|
|
|
91
91
|
}
|
|
92
92
|
function getJayHtmlOrContractFileInputs(source) {
|
|
93
93
|
return Object.fromEntries(
|
|
94
|
-
glob$1.sync(
|
|
94
|
+
glob$1.sync(
|
|
95
|
+
`${source}/**/*{${JAY_EXTENSION},${JAY_CONTRACT_EXTENSION},${JAY_ACTION_EXTENSION}}`
|
|
96
|
+
).map((file) => {
|
|
95
97
|
const relativePath = path$1.relative(source, file);
|
|
96
98
|
let moduleName;
|
|
97
99
|
if (file.endsWith(JAY_CONTRACT_EXTENSION)) {
|
|
98
100
|
moduleName = relativePath.slice(0, -JAY_CONTRACT_EXTENSION.length) + ".contract";
|
|
101
|
+
} else if (file.endsWith(JAY_ACTION_EXTENSION)) {
|
|
102
|
+
moduleName = relativePath.slice(0, -JAY_ACTION_EXTENSION.length) + ".action";
|
|
99
103
|
} else {
|
|
100
104
|
moduleName = relativePath.slice(0, -JAY_EXTENSION.length);
|
|
101
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/jay-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
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.
|
|
25
|
-
"@jay-framework/logger": "^0.
|
|
26
|
-
"@jay-framework/rollup-plugin": "^0.
|
|
24
|
+
"@jay-framework/compiler": "^0.14.0",
|
|
25
|
+
"@jay-framework/logger": "^0.14.0",
|
|
26
|
+
"@jay-framework/rollup-plugin": "^0.14.0",
|
|
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.
|
|
33
|
+
"@jay-framework/dev-environment": "^0.14.0",
|
|
34
34
|
"@types/node": "^20.11.5",
|
|
35
35
|
"@types/shelljs": "^0.8.15",
|
|
36
36
|
"rimraf": "^5.0.5",
|