codecane 1.0.400 → 1.0.402
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/package.json
CHANGED
|
@@ -6,14 +6,14 @@ const path = require('path')
|
|
|
6
6
|
const os = require('os')
|
|
7
7
|
const { platform, arch } = process
|
|
8
8
|
|
|
9
|
-
// Get version from package.
|
|
10
|
-
const packageJsonPath = path.join(__dirname, '..', 'package.
|
|
9
|
+
// Get version from package.json
|
|
10
|
+
const packageJsonPath = path.join(__dirname, '..', 'package.json')
|
|
11
11
|
let version
|
|
12
12
|
try {
|
|
13
13
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'))
|
|
14
14
|
version = packageJson.version
|
|
15
15
|
} catch (error) {
|
|
16
|
-
console.error('❌ Could not read package.
|
|
16
|
+
console.error('❌ Could not read package.json version')
|
|
17
17
|
process.exit(1)
|
|
18
18
|
}
|
|
19
19
|
|