diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc72528..6ed858c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,3 +31,30 @@ jobs: - name: Test run: deno task test:cov + + npm-trial-build: + name: npm trial build + runs-on: ubuntu-latest + needs: test + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Prepare files + run: mv npm/* . + + - name: Setup pnpm + uses: pnpm/action-setup@v3 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + registry-url: 'https://registry.npmjs.org' + cache: pnpm + + - name: Install + run: pnpm install + + - name: Build + run: pnpm run build diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..9babefe --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +registry=https://registry.npmjs.org +@jsr:registry=https://npm.jsr.io diff --git a/.vscode/settings.json b/.vscode/settings.json index bf9ac2c..7f238f5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,6 +21,7 @@ "deno", "denoland", "minzip", + "okikio", "pnpx", "runtimes", "Transferables", diff --git a/deno.lock b/deno.lock index f38bca4..3cd0c7f 100644 --- a/deno.lock +++ b/deno.lock @@ -2,14 +2,14 @@ "version": "3", "packages": { "specifiers": { - "jsr:@okikio/transferables@^1.0.1": "jsr:@okikio/transferables@1.0.1", + "jsr:@okikio/transferables@^1.0.2": "jsr:@okikio/transferables@1.0.2", "jsr:@std/assert@0.217": "jsr:@std/assert@0.217.0", "jsr:@std/fmt@^0.217.0": "jsr:@std/fmt@0.217.0", "npm:@types/node": "npm:@types/node@18.16.19" }, "jsr": { - "@okikio/transferables@1.0.1": { - "integrity": "90051c61464a13a5e09db2f0bae3190fde294da93839563bd3ad8047ba190b10" + "@okikio/transferables@1.0.2": { + "integrity": "46a80015a1c4672b0b246e38838b3ea1e2edc6c775a235184a2f8eb49a8314f7" }, "@std/assert@0.217.0": { "integrity": "c98e279362ca6982d5285c3b89517b757c1e3477ee9f14eb2fdf80a45aaa9642", @@ -31,7 +31,7 @@ "remote": {}, "workspace": { "dependencies": [ - "jsr:@okikio/transferables@^1.0.1", + "jsr:@okikio/transferables@^1.0.2", "jsr:@std/assert@0.217" ] } diff --git a/npm/package.json b/npm/package.json index bb6b1d6..d573d6b 100644 --- a/npm/package.json +++ b/npm/package.json @@ -4,7 +4,7 @@ "description": "worker-fn hides the complexity of communication between the JavaScript main thread and Worker threads, making it easy to call the functions defined in workers.", "type": "module", "author": "mys1024", - "packageManager": "pnpm@8.6.1", + "packageManager": "pnpm@8.15.4", "license": "MIT", "homepage": "https://github.com/mys1024/worker-fn#readme", "repository": { @@ -41,7 +41,8 @@ } }, "devDependencies": { + "@okikio/transferables": "npm:@jsr/okikio__transferables@^1.0.2", "tsup": "^8.0.2", - "typescript": "^5.3.3" + "typescript": "^5.4.2" } } diff --git a/npm/pnpm-lock.yaml b/npm/pnpm-lock.yaml index 109e776..318e0f8 100644 --- a/npm/pnpm-lock.yaml +++ b/npm/pnpm-lock.yaml @@ -5,12 +5,15 @@ settings: excludeLinksFromLockfile: false devDependencies: + '@okikio/transferables': + specifier: npm:@jsr/okikio__transferables@^1.0.2 + version: /@jsr/okikio__transferables@1.0.2 tsup: specifier: ^8.0.2 - version: 8.0.2(typescript@5.3.3) + version: 8.0.2(typescript@5.4.2) typescript: - specifier: ^5.3.3 - version: 5.3.3 + specifier: ^5.4.2 + version: 5.4.2 packages: @@ -263,6 +266,10 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true + /@jsr/okikio__transferables@1.0.2: + resolution: {integrity: sha512-Ssz8Hd7/GtM1vIX3vRBr08d2eOBHnGG8KmW1pKe5pYvvfv7Gh8sCHWorBDOWIr9r+CoSQbKU1N5yymNh9sWsXA==, tarball: https://npm.jsr.io/~/7/@jsr/okikio__transferables/1.0.2.tgz} + dev: true + /@nodelib/fs.scandir@2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -1041,7 +1048,7 @@ packages: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} dev: true - /tsup@8.0.2(typescript@5.3.3): + /tsup@8.0.2(typescript@5.4.2): resolution: {integrity: sha512-NY8xtQXdH7hDUAZwcQdY/Vzlw9johQsaqf7iwZ6g1DOUlFYQ5/AtVAjTvihhEyeRlGo4dLRVHtrRaL35M1daqQ==} engines: {node: '>=18'} hasBin: true @@ -1074,14 +1081,14 @@ packages: source-map: 0.8.0-beta.0 sucrase: 3.35.0 tree-kill: 1.2.2 - typescript: 5.3.3 + typescript: 5.4.2 transitivePeerDependencies: - supports-color - ts-node dev: true - /typescript@5.3.3: - resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + /typescript@5.4.2: + resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} engines: {node: '>=14.17'} hasBin: true dev: true