Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
}
],
"configurations": [
// Debug the ts-node script in the currently active window
// Debug the TypeScript script in the currently active window
{
"name": "Debug ts-node script (open file)",
"name": "Debug TypeScript script (open file)",
"type": "pwa-node",
"cwd": "${workspaceFolder}/packages/${input:getPackageName}",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["ts-node", "-P", "${workspaceFolder}/tsconfig.dev.json", "${file}"],
"runtimeArgs": ["exec", "tsx", "${file}"],
"skipFiles": ["<node_internals>/**"],
"outFiles": ["${workspaceFolder}/**/*.js", "!**/node_modules/**"],
"sourceMaps": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"size-limit": "~12.1.0",
"tslib": "^2.4.1",
"tsx": "^4.23.0",
"typescript": "~7.0.2",
"typescript": "7.1.0-beta",
"vitest": "^4.1.11",
"webpack": "^5.104.1",
"yalc": "^1.0.0-pre.53"
Expand Down
4 changes: 0 additions & 4 deletions packages/astro/tsconfig.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node"
},

"ts-node": {
"esm": true
}
}
2 changes: 1 addition & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "pnpm run build",
"build:transpile": "tsx --tsconfig tsconfig.tsnode.json scripts/buildRollup.ts",
"build:transpile": "tsx scripts/buildRollup.ts",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch",
"build:dev:watch": "pnpm run build:watch",
Expand Down
9 changes: 0 additions & 9 deletions packages/nextjs/tsconfig.tsnode.json

This file was deleted.

5 changes: 4 additions & 1 deletion packages/wasm/src/patchWebAssembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ function patchNonStreamingWebAssembly(registerModule: RegisterModuleCallback): v
} as typeof WebAssembly.instantiate;

const origCompile = WebAssembly.compile as (source: unknown, ...rest: unknown[]) => Promise<WebAssembly.Module>;
WebAssembly.compile = function compile(source: BufferSource, ...rest: unknown[]): Promise<WebAssembly.Module> {
WebAssembly.compile = function compile(
source: Parameters<typeof WebAssembly.compile>[0],
...rest: unknown[]
): Promise<WebAssembly.Module> {
return origCompile(source, ...rest).then(module => {
registerFromBufferSource(registerModule, module, source);
return module;
Expand Down
426 changes: 218 additions & 208 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/verify-packages-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs');
const path = require('path');
const pkg = require('../package.json');

const TYPESCRIPT_VERSION = '~7.0.2';
const TYPESCRIPT_VERSION = '7.1.0-beta';

if (pkg.devDependencies.typescript !== TYPESCRIPT_VERSION) {
console.error(`
Expand Down
11 changes: 0 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,5 @@
"declaration": false,
"declarationMap": false,
"skipLibCheck": true
},

// `*.ts` helper scripts are run with ts-node, which executes them as CommonJS. The base config's
// `module: esnext` / `moduleResolution: bundler` is an ESM-only combo that makes ts-node hand the
// `.ts` file to Node's native ESM loader (which can't load `.ts`). ts-node merges this `ts-node`
// key across the `extends` chain, so this single override covers every package that extends this config.
"ts-node": {
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node"
}
}
}
Loading