diff --git a/npmDepsHash b/npmDepsHash index 7d1c6992..5458db42 100644 --- a/npmDepsHash +++ b/npmDepsHash @@ -1 +1 @@ -sha256-xRnHEVwU598REmAsVcghe44lzfJLQPkoXlTeHbt9WLM= +sha256-vWlgkQ7nOIkDrOYoWnRTietD9ofWGZahLBeD3dzhiZg= diff --git a/package-lock.json b/package-lock.json index b7d0a450..97d41f4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "polykey-cli", - "version": "0.18.9", + "version": "0.18.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "polykey-cli", - "version": "0.18.9", + "version": "0.18.10", "license": "GPL-3.0", "bin": { "pk": "dist/polykey.mjs", diff --git a/package.json b/package.json index 45d931ec..3ab681b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polykey-cli", - "version": "0.18.9", + "version": "0.18.10", "homepage": "https://polykey.com", "author": "Roger Qiu", "contributors": [ diff --git a/scripts/build.mjs b/scripts/build.mjs index b5807498..efe814f7 100755 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -39,7 +39,7 @@ const nativeNodeModulesPlugin = { loader: 'js', }; } - if (args.path.endsWith('fd-lock/index.js')) { + if (args.path.endsWith(path.join('fd-lock', 'index.js'))) { return { contents: ` const path = require('path'); @@ -59,7 +59,7 @@ const nativeNodeModulesPlugin = { loader: 'js', }; } - if (args.path.endsWith('sodium-native/index.js')) { + if (args.path.endsWith(path.join('sodium-native', 'index.js'))) { return { contents: ` const path = require('path'); @@ -132,7 +132,7 @@ async function main(argv = process.argv) { ? { external: [], format: 'cjs', - inject: [path.join(projectPath, './shims/import-meta-url-shim.mjs')], + inject: [path.join(projectPath, 'shims', 'import-meta-url-shim.mjs')], // Fix import.meta.url in CJS output define: { 'import.meta.url': '__import_meta_url', @@ -142,7 +142,7 @@ async function main(argv = process.argv) { : { // External: externalDependencies, format: 'esm', - inject: [path.join(projectPath, './shims/require-shim.mjs')], + inject: [path.join(projectPath, 'shims', 'require-shim.mjs')], outExtension: { '.js': '.mjs' }, }; @@ -174,8 +174,8 @@ async function main(argv = process.argv) { childProcess.execFileSync( 'mv', [ - `dist/polykeyWorkerManifest.${isPkg ? 'cjs' : 'mjs'}`, - 'dist/polykeyWorkerManifest.js', + path.join('dist', `polykeyWorkerManifest.${isPkg ? 'cjs' : 'mjs'}`), + path.join('dist', 'polykeyWorkerManifest.js'), ], { stdio: ['inherit', 'inherit', 'inherit'], @@ -187,8 +187,8 @@ async function main(argv = process.argv) { childProcess.execFileSync( 'mv', [ - `dist/polykeyWorkerManifest.${isPkg ? 'cjs' : 'mjs'}.map`, - 'dist/polykeyWorkerManifest.js.map', + path.join('dist', `polykeyWorkerManifest.${isPkg ? 'cjs' : 'mjs'}.map`), + path.join('dist', 'polykeyWorkerManifest.js.map'), ], { stdio: ['inherit', 'inherit', 'inherit'], diff --git a/scripts/wait-for-deploy.mjs b/scripts/wait-for-deploy.mjs index fbf7e41e..02323224 100755 --- a/scripts/wait-for-deploy.mjs +++ b/scripts/wait-for-deploy.mjs @@ -1,7 +1,7 @@ #!/usr/bin/env node import process from 'node:process'; import childProcess from 'node:child_process'; -import config from 'polykey/dist/config.js'; +import config from 'polykey/config.js'; const versionTarget = config.version; async function main(argv = process.argv) {