@joystick.js/node-canary 0.0.0-canary.460 → 0.0.0-canary.461
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"fs";import
|
|
1
|
+
import t from"fs";import"./replace_backslashes_with_forward_slashes.js";import"./replace_file_protocol.js";const r=()=>["development","test"].includes(process.env.NODE_ENV)||t.existsSync(".joystick/build")?".joystick/build/":"",o=()=>{const e=r();return`${process.cwd().replace(e,"")}/${e}`};var l=o;export{l as default};
|
package/package.json
CHANGED
|
@@ -18,11 +18,7 @@ const get_build_path_for_environment = () => {
|
|
|
18
18
|
const get_joystick_build_path = () => {
|
|
19
19
|
const build_path_for_environment = get_build_path_for_environment();
|
|
20
20
|
|
|
21
|
-
return
|
|
22
|
-
replace_backslashes_with_forward_slashes(
|
|
23
|
-
`${process.cwd().replace(build_path_for_environment, '')}/${build_path_for_environment}`
|
|
24
|
-
)
|
|
25
|
-
);
|
|
21
|
+
return `${process.cwd().replace(build_path_for_environment, '')}/${build_path_for_environment}`;
|
|
26
22
|
};
|
|
27
23
|
|
|
28
24
|
export default get_joystick_build_path;
|