@loybung/launcher 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -14,11 +14,9 @@ async function launcher({ url: url, filepath: filepath }, callback) {
14
14
  return;
15
15
  }
16
16
 
17
- fs.readFile(filepath, "utf8", (err, data) => {
18
- const app = path.join(__dirname, filepath);
19
- const { run } = require(app);
20
- callback(run);
21
- });
17
+ const app = path.resolve(__dirname, `../../../${filepath}`);
18
+ const { run } = require(app);
19
+ callback(run);
22
20
  });
23
21
  }
24
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loybung/launcher",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "LOYBUNG / Launcher",
5
5
  "main": "index.js",
6
6
  "scripts": {