@joystick.js/cli-canary 0.0.0-canary.6 → 0.0.0-canary.8
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.
|
@@ -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
|
@@ -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
|
+
};
|