Skip to content

Commit

Permalink
Merge branch 'main' into SUMO-5293-continued
Browse files Browse the repository at this point in the history
  • Loading branch information
asanehisa authored Nov 9, 2023
2 parents 060efb6 + 827c8db commit 10a8433
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [17.x, 18.x, 19.x]
node-version: [18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4

- name: Set node version to 17.x
- name: Set node version to 18.x
uses: actions/setup-node@v3
with:
node-version: 17.x
node-version: 18.x
registry-url: https://registry.npmjs.org/
cache: "pnpm"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
working-directory: ./packages/${{ inputs.package }}
strategy:
matrix:
node-version: [17.x, 18.x]
node-version: [18.x, 20.x]
steps:
- name: "Checkout"
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion packages/pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
},
"engines": {
"node": "^17 || ^18 || ^19"
"node": "^18 || ^20"
},
"scripts": {
"watch": "node src/bundler --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/pages/src/bin/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const nodeVersion = Number(
);

const experimentalFlags = ["--experimental-vm-modules"];
if (nodeVersion === 17 || nodeVersion === 18) {
if (nodeVersion === 18) {
experimentalFlags.push("--experimental-specifier-resolution=node");
} else {
experimentalFlags.push("--experimental-loader");
Expand Down
7 changes: 5 additions & 2 deletions packages/pages/src/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const commonBuildOpts = {
".ico": "copy",
},
tsconfig: "tsconfig.json",
logLevel: "error",
logLevel: "info",
platform: "node",
};

Expand All @@ -58,14 +58,17 @@ pluginFiles.map((filepath) =>
);

try {
const ctx = await esbuild.build({
const ctx = await esbuild.context({
...commonBuildOpts,
outdir: "dist",
format: "esm",
});

if (watch) {
await ctx.watch();
} else {
await ctx.rebuild();
await ctx.dispose();
}
} catch (e) {
console.error(e);
Expand Down
27 changes: 0 additions & 27 deletions packages/pages/src/util/fetch.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/pages/src/util/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { fetch } from "./fetch.js";
export { getRuntime } from "./runtime.js";
export { isProduction } from "./env.js";

0 comments on commit 10a8433

Please sign in to comment.