@joystick.js/node-canary 0.0.0-canary.461 → 0.0.0-canary.462
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_file_protocol.js";const o=()=>["development","test"].includes(process.env.NODE_ENV)||t.existsSync(".joystick/build")?".joystick/build/":"",r=()=>{const e=o();return`${process.cwd().replace(e,"")}/${e}`};var c=r;export{c as default};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"os";const s=(r="")=>e.platform()==="win32"?r.replace(/\\/g,"/"):r;var o=s;export{o as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import os from 'os';
|
|
2
|
-
|
|
3
|
-
const replace_backslashes_with_forward_slashes = (path = '') => {
|
|
4
|
-
// NOTE: This is why serial killers exist.
|
|
5
|
-
return os.platform() === 'win32' ? path.replace(/\\/g, '/') : path;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default replace_backslashes_with_forward_slashes;
|