@makano/rew 1.0.2 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/rew +3 -3
- package/lib/rew/pkgs/ui.js +1 -1
- package/package.json +1 -1
package/bin/rew
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
const path = require('path');
|
3
3
|
const fs = require('fs');
|
4
|
-
const rew_mod = path.resolve(process.cwd(), 'node_modules/rew');
|
4
|
+
const rew_mod = path.resolve(process.cwd(), 'node_modules/@makano/rew');
|
5
5
|
if(fs.existsSync(rew_mod)){
|
6
|
-
require(
|
6
|
+
require(path.join(rew_mod, 'lib/rew/cli/cli.js'));
|
7
7
|
} else {
|
8
8
|
require('../lib/rew/cli/cli.js');
|
9
|
-
}
|
9
|
+
}
|
package/lib/rew/pkgs/ui.js
CHANGED
@@ -8,7 +8,7 @@ const { generateRandomID } = require("../functions/id");
|
|
8
8
|
const { THEME_PATH } = require("../const/files");
|
9
9
|
|
10
10
|
|
11
|
-
const BIN_PATH = path.resolve(__dirname, "
|
11
|
+
const BIN_PATH = path.resolve(__dirname, "../../../bin/ui");
|
12
12
|
const HTML_STRING = fs.readFileSync(
|
13
13
|
path.resolve(__dirname, "../html/ui.html"),
|
14
14
|
{ encoding: "utf-8" },
|