@jay-framework/jay-cli 0.6.8 → 0.6.10

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 -4
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { JAY_EXTENSION, checkValidationErrors, GenerateTarget, RuntimeMode, JAY_
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";
12
- import glob$1 from "glob";
12
+ import { glob as glob$1 } from "glob";
13
13
  import path$1 from "node:path";
14
14
  const { glob } = fastGlob;
15
15
  async function findAllJayFiles(dir) {
@@ -86,10 +86,9 @@ async function generateFiles(dir, codeGenerationFunction, afterGenerationFunctio
86
86
  }
87
87
  }
88
88
  }
89
- const { sync: globSync } = glob$1;
90
89
  function getJayHtmlOrContractFileInputs(source) {
91
90
  return Object.fromEntries(
92
- globSync(`${source}/**/*{${JAY_EXTENSION},${JAY_CONTRACT_EXTENSION}}`).map((file) => {
91
+ glob$1.sync(`${source}/**/*{${JAY_EXTENSION},${JAY_CONTRACT_EXTENSION}}`).map((file) => {
93
92
  const moduleName = file.includes(JAY_EXTENSION) ? file.slice(0, file.length - JAY_EXTENSION.length) : file.slice(0, file.length - JAY_CONTRACT_EXTENSION.length);
94
93
  return [path$1.relative(source, moduleName), file];
95
94
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/jay-cli",
3
- "version": "0.6.8",
3
+ "version": "0.6.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "bin": "dist/index.js",
@@ -21,14 +21,15 @@
21
21
  "test:watch": ":"
22
22
  },
23
23
  "dependencies": {
24
- "@jay-framework/compiler": "^0.6.8",
25
- "@jay-framework/rollup-plugin": "^0.6.8",
24
+ "@jay-framework/compiler": "^0.6.10",
25
+ "@jay-framework/rollup-plugin": "^0.6.10",
26
26
  "chalk": "^4.1.2",
27
27
  "commander": "^14.0.0",
28
+ "glob": "^10.4.5",
28
29
  "rollup": "^4.9.5"
29
30
  },
30
31
  "devDependencies": {
31
- "@jay-framework/dev-environment": "^0.6.8",
32
+ "@jay-framework/dev-environment": "^0.6.10",
32
33
  "@types/node": "^20.11.5",
33
34
  "@types/shelljs": "^0.8.15",
34
35
  "rimraf": "^5.0.5",