@joystick.js/cli-canary 0.0.0-canary.5 → 0.0.0-canary.7

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.
@@ -3,7 +3,7 @@ import svg from "esbuild-plugin-svg";
3
3
  import fs from "fs";
4
4
  import plugins from "./buildPlugins.js";
5
5
  import onWarn from "./onWarn.js";
6
- import getCodeFrame from "../../lib/getCodeFrame.js";
6
+ import getCodeFrame from "../../lib/build/getCodeFrame.js";
7
7
  const configs = {
8
8
  node: (inputPath, outputPath = null, environment = "development") => ({
9
9
  entryPoints: [inputPath],
@@ -0,0 +1,16 @@
1
+ import fs from "fs";
2
+ var readFileDependencyMap_default = () => {
3
+ const fileDependencyMapPath = `.joystick/build/fileMap.json`;
4
+ if (fs.existsSync(fileDependencyMapPath)) {
5
+ const fileDependencyMapAsJSON = fs.readFileSync(
6
+ fileDependencyMapPath,
7
+ "utf-8"
8
+ );
9
+ const fileMap = fileDependencyMapAsJSON ? JSON.parse(fileDependencyMapAsJSON) : {};
10
+ return fileMap;
11
+ }
12
+ return {};
13
+ };
14
+ export {
15
+ readFileDependencyMap_default as default
16
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.5",
3
+ "version": "0.0.0-canary.7",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -3,7 +3,7 @@ import svg from "esbuild-plugin-svg";
3
3
  import fs from "fs";
4
4
  import plugins from "./buildPlugins.js";
5
5
  import onWarn from "./onWarn.js";
6
- import getCodeFrame from "../../lib/getCodeFrame.js";
6
+ import getCodeFrame from "../../lib/build/getCodeFrame.js";
7
7
 
8
8
  const configs = {
9
9
  node: (inputPath, outputPath = null, environment = "development") => ({
@@ -0,0 +1,19 @@
1
+ import fs from 'fs';
2
+
3
+ export default () => {
4
+ const fileDependencyMapPath = `.joystick/build/fileMap.json`;
5
+
6
+ if (fs.existsSync(fileDependencyMapPath)) {
7
+ const fileDependencyMapAsJSON = fs.readFileSync(
8
+ fileDependencyMapPath,
9
+ "utf-8"
10
+ );
11
+ const fileMap = fileDependencyMapAsJSON
12
+ ? JSON.parse(fileDependencyMapAsJSON)
13
+ : {};
14
+
15
+ return fileMap;
16
+ }
17
+
18
+ return {};
19
+ };