qmai-cli-public 0.1.1 → 0.1.2
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/npm/install.js +2 -0
- package/package.json +1 -1
package/npm/install.js
CHANGED
|
@@ -142,6 +142,7 @@ async function main() {
|
|
|
142
142
|
const archivePath = path.join(distDir, archiveName);
|
|
143
143
|
const extractedDir = path.join(distDir, baseName);
|
|
144
144
|
const finalBinaryPath = path.join(distDir, binaryName);
|
|
145
|
+
const shimPath = path.join(packageRoot, "npm", "bin", "qmai.js");
|
|
145
146
|
|
|
146
147
|
await fsp.mkdir(distDir, { recursive: true });
|
|
147
148
|
await fsp.rm(archivePath, { force: true });
|
|
@@ -167,6 +168,7 @@ async function main() {
|
|
|
167
168
|
await fsp.copyFile(extractedBinaryPath, finalBinaryPath);
|
|
168
169
|
if (platform !== "windows") {
|
|
169
170
|
await fsp.chmod(finalBinaryPath, 0o755);
|
|
171
|
+
await fsp.chmod(shimPath, 0o755);
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
await fsp.rm(archivePath, { force: true });
|