@iksdev/shard-cli 0.1.41 → 0.1.43
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.
- package/bin/shard.js +2 -2
- package/package.json +1 -1
package/bin/shard.js
CHANGED
|
@@ -19,8 +19,8 @@ const IGNORED_DIRS = new Set(['.git', 'node_modules']);
|
|
|
19
19
|
async function checkForUpdate() {
|
|
20
20
|
return new Promise((resolve) => {
|
|
21
21
|
const https = require('https');
|
|
22
|
-
const pkgName = require('
|
|
23
|
-
const currentVersion = require('
|
|
22
|
+
const pkgName = require(path.join(__dirname, '../package.json')).name;
|
|
23
|
+
const currentVersion = require(path.join(__dirname, '../package.json')).version;
|
|
24
24
|
|
|
25
25
|
const req = https.get(
|
|
26
26
|
`https://registry.npmjs.org/${pkgName}/latest`,
|