@joystick.js/node-canary 0.0.0-canary.460 → 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 r from"./replace_backslashes_with_forward_slashes.js";import o from"./replace_file_protocol.js";const s=()=>["development","test"].includes(process.env.NODE_ENV)||t.existsSync(".joystick/build")?".joystick/build/":"",i=()=>{const e=s();return o(r(`${process.cwd().replace(e,"")}/${e}`))};var l=i;export{l as default};
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
3
  "type": "module",
4
- "version": "0.0.0-canary.460",
4
+ "version": "0.0.0-canary.462",
5
5
  "description": "The Node.js framework for Joystick.",
6
6
  "main": "./dist/index.js",
7
7
  "scripts": {
@@ -1,5 +1,4 @@
1
1
  import fs from 'fs';
2
- import replace_backslashes_with_forward_slashes from './replace_backslashes_with_forward_slashes.js';
3
2
  import replace_file_protocol from './replace_file_protocol.js';
4
3
 
5
4
  const get_build_path_for_environment = () => {
@@ -18,11 +17,7 @@ const get_build_path_for_environment = () => {
18
17
  const get_joystick_build_path = () => {
19
18
  const build_path_for_environment = get_build_path_for_environment();
20
19
 
21
- return replace_file_protocol(
22
- replace_backslashes_with_forward_slashes(
23
- `${process.cwd().replace(build_path_for_environment, '')}/${build_path_for_environment}`
24
- )
25
- );
20
+ return `${process.cwd().replace(build_path_for_environment, '')}/${build_path_for_environment}`;
26
21
  };
27
22
 
28
23
  export default get_joystick_build_path;
@@ -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;