siftctl 0.53.0 → 0.55.0
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/dist/cli.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { realpathSync } from 'node:fs';
|
|
2
3
|
import { pathToFileURL } from 'node:url';
|
|
3
4
|
import { baseUrl, readToken, writeToken } from './config.js';
|
|
4
5
|
import { ApiError, capabilities, pull, push, redeemToken } from './api.js';
|
|
@@ -227,7 +228,7 @@ export async function runCli(argv) {
|
|
|
227
228
|
return 1;
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
|
-
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|
231
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href) {
|
|
231
232
|
runCli(process.argv.slice(2)).then((code) => {
|
|
232
233
|
process.exitCode = code;
|
|
233
234
|
});
|
package/package.json
CHANGED