From de9c817e530b07be2fafa0d84efd891571f1ae7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Charles?= Date: Wed, 17 Jul 2024 14:31:18 +0200 Subject: [PATCH] chore: windows tests --- package.json | 5 +- .../universal-middleware/test/esbuild.test.ts | 2 +- pnpm-lock.yaml | 51 +++++++++++++++++++ 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 850cabc..7241fc6 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "dev:hono": "vite --mode hono", "dev:hattip": "hattip serve ./playground/hattip-entry.ts --client", "lint": "eslint --ext .js,.jsx,.ts,.tsx .", - "build": "pnpm run -r --filter \"@universal-middleware/*\" build && pnpm run --filter \"universal-middleware\" build", + "build:core": "pnpm run -r --filter \"@universal-middleware/*\" build", + "build:plugin": "pnpm run --filter \"universal-middleware\" build", + "build": "run-s build:core build:plugin", "test": "pnpm run -r --sequential test", "test:typecheck": "pnpm run -r test:typecheck" }, @@ -31,6 +33,7 @@ "express-rate-limit": "^7.3.1", "express-session": "^1.18.0", "microdiff": "^1.4.0", + "npm-run-all2": "^6.2.2", "on-change": "^5.0.1", "prettier": "^3.3.2", "proxy-deep": "^4.0.1", diff --git a/packages/universal-middleware/test/esbuild.test.ts b/packages/universal-middleware/test/esbuild.test.ts index f9b11b6..2e78a7f 100644 --- a/packages/universal-middleware/test/esbuild.test.ts +++ b/packages/universal-middleware/test/esbuild.test.ts @@ -147,7 +147,7 @@ describe("esbuild", () => { entryPoints: [entry1 + "?handler", entry2 + "?handler"], plugins: [unplugin.esbuild()], outdir: "dist", - outbase: join("test", "files"), + outbase: "test/files", write: false, metafile: true, bundle: true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3e08b03..c6b5427 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,6 +96,9 @@ importers: microdiff: specifier: ^1.4.0 version: 1.4.0 + npm-run-all2: + specifier: ^6.2.2 + version: 6.2.2 on-change: specifier: ^5.0.1 version: 5.0.1 @@ -2148,6 +2151,10 @@ packages: resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} + memorystream@0.3.1: + resolution: {integrity: sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==} + engines: {node: '>= 0.10.0'} + meow@12.1.1: resolution: {integrity: sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==} engines: {node: '>=16.10'} @@ -2271,6 +2278,15 @@ packages: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} + npm-normalize-package-bin@3.0.1: + resolution: {integrity: sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + + npm-run-all2@6.2.2: + resolution: {integrity: sha512-Q+alQAGIW7ZhKcxLt8GcSi3h3ryheD6xnmXahkMRVM5LYmajcUrSITm8h+OPC9RYWMV2GR0Q1ntTUCfxaNoOJw==} + engines: {node: ^14.18.0 || ^16.13.0 || >=18.0.0, npm: '>= 8'} + hasBin: true + npm-run-path@4.0.1: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} @@ -2400,6 +2416,11 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} + pidtree@0.6.0: + resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==} + engines: {node: '>=0.10'} + hasBin: true + pirates@4.0.6: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} engines: {node: '>= 6'} @@ -2468,6 +2489,10 @@ packages: resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} engines: {node: '>= 0.8'} + read-package-json-fast@3.0.2: + resolution: {integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + read-pkg-up@10.1.0: resolution: {integrity: sha512-aNtBq4jR8NawpKJQldrQcSW9y/d+KWH4v24HWkHljOZ7H0av+YTGANBzRh9A5pw7v/bLVsLVPpOhJ7gHNVy8lA==} engines: {node: '>=16'} @@ -2565,6 +2590,9 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + shell-quote@1.8.1: + resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} + side-channel@1.0.6: resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} engines: {node: '>= 0.4'} @@ -4838,6 +4866,8 @@ snapshots: media-typer@0.3.0: {} + memorystream@0.3.1: {} + meow@12.1.1: {} merge-descriptors@1.0.1: {} @@ -4940,6 +4970,18 @@ snapshots: normalize-path@3.0.0: {} + npm-normalize-package-bin@3.0.1: {} + + npm-run-all2@6.2.2: + dependencies: + ansi-styles: 6.2.1 + cross-spawn: 7.0.3 + memorystream: 0.3.1 + minimatch: 9.0.5 + pidtree: 0.6.0 + read-package-json-fast: 3.0.2 + shell-quote: 1.8.1 + npm-run-path@4.0.1: dependencies: path-key: 3.1.1 @@ -5049,6 +5091,8 @@ snapshots: picomatch@2.3.1: {} + pidtree@0.6.0: {} + pirates@4.0.6: {} postcss-load-config@4.0.2(postcss@8.4.39): @@ -5102,6 +5146,11 @@ snapshots: iconv-lite: 0.4.24 unpipe: 1.0.0 + read-package-json-fast@3.0.2: + dependencies: + json-parse-even-better-errors: 3.0.2 + npm-normalize-package-bin: 3.0.1 + read-pkg-up@10.1.0: dependencies: find-up: 6.3.0 @@ -5232,6 +5281,8 @@ snapshots: shebang-regex@3.0.0: {} + shell-quote@1.8.1: {} + side-channel@1.0.6: dependencies: call-bind: 1.0.7