@pwrs/cem 0.1.7 → 0.1.8
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/cem.js +2 -7
- package/package.json +5 -5
package/bin/cem.js
CHANGED
|
@@ -22,14 +22,9 @@ if (!supportedTargets.has(target)) {
|
|
|
22
22
|
|
|
23
23
|
let binPath;
|
|
24
24
|
try {
|
|
25
|
-
|
|
26
|
-
if (platform() === "win32" ? ".exe" : "") {
|
|
27
|
-
pkgPath += '.exe'
|
|
28
|
-
}
|
|
29
|
-
binPath = require.resolve(pkgPath);
|
|
30
|
-
console.log(pkgPath);
|
|
25
|
+
binPath = require.resolve(`@pwrs/cem-${target}/cem${platform() === 'win32' ? '.exe' : ''}`);
|
|
31
26
|
} catch {
|
|
32
|
-
console.error(`cem: Platform binary package
|
|
27
|
+
console.error(`cem: Platform binary package @pwrs/cem-${target} not installed. Was there an install error?`);
|
|
33
28
|
process.exit(1);
|
|
34
29
|
}
|
|
35
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pwrs/cem",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "CLI tool for generating and working with Custom Elements Manifests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"postinstall": "node ./install-platform-binary.js"
|
|
14
14
|
},
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@pwrs/cem-linux-x64": "0.1.
|
|
17
|
-
"@pwrs/cem-linux-arm64": "0.1.
|
|
18
|
-
"@pwrs/cem-darwin-x64": "0.1.
|
|
19
|
-
"@pwrs/cem-darwin-arm64": "0.1.
|
|
16
|
+
"@pwrs/cem-linux-x64": "0.1.8",
|
|
17
|
+
"@pwrs/cem-linux-arm64": "0.1.8",
|
|
18
|
+
"@pwrs/cem-darwin-x64": "0.1.8",
|
|
19
|
+
"@pwrs/cem-darwin-arm64": "0.1.8"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"bin/cem.js",
|