Skip to content
Merged
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: 6 additions & 0 deletions .changeset/fair-paws-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@arethetypeswrong/core": patch
"@arethetypeswrong/cli": patch
---

Update @types/node, use @typescript/native-preview for local build/check
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
node-version: 22
- run: pnpm install --frozen-lockfile
- run: pnpm tsc
- run: pnpm tsgo
- run: pnpm build
- run: pnpm test
- run: pnpm check-dts
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
},
"license": "MIT",
"scripts": {
"tsc": "tsc -b",
"build": "pnpm tsc && pnpm -r build",
"tsgo": "tsgo -b",
"build": "pnpm tsgo && pnpm -r build",
"format": "prettier --write \"**/*.{ts,json,css}\"",
"test": "pnpm -r test",
"check-dts": "tsc -p tsconfig.check-dts.json",
"check-dts": "tsgo -p tsconfig.check-dts.json",
"start": "pnpm --filter @arethetypeswrong/web start",
"version": "changeset version && pnpm install --lockfile-only"
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"prettier": "^3.0.3",
"typescript": "5.6.1-rc"
"@typescript/native-preview": "7.0.0-dev.20260527.2",
"prettier": "^3.0.3"
},
"engines": {
"node": ">=22",
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
"access": "public"
},
"scripts": {
"tsc": "tsc -b",
"tsgo": "tsgo -b",
"local:install": "npm install -g .",
"local:uninstall": "npm uninstall -g @arethetypeswrong/cli",
"test": "tsc -b test && node --test \"test/dist/**/*.test.js\"",
"prepack": "pnpm tsc"
"test": "tsgo -b test && node --test \"test/dist/**/*.test.js\"",
"prepack": "pnpm tsgo"
},
"type": "module",
"devDependencies": {
"@types/marked": "^5.0.0",
"@types/marked-terminal": "^3.1.3",
"@types/node": "^22.5.0",
"@types/node": "^25.9.1",
"@types/semver": "^7.5.3",
"ts-expose-internals": "5.6.1-rc"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"access": "public"
},
"scripts": {
"tsc": "tsc",
"test": "tsc -b test && node --test \"test/dist/**/*.test.js\"",
"tsgo": "tsgo",
"test": "tsgo -b test && node --test \"test/dist/**/*.test.js\"",
"snapshot": "node scripts/createSnapshotFixture.js",
"prepack": "pnpm tsc"
"prepack": "pnpm tsgo"
},
"type": "module",
"imports": {
Expand Down Expand Up @@ -60,7 +60,7 @@
"validate-npm-package-name": "^5.0.0"
},
"devDependencies": {
"@types/node": "^22.5.0",
"@types/node": "^25.9.1",
"@types/semver": "^7.5.0",
"@types/validate-npm-package-name": "^4.0.0",
"ts-expose-internals": "5.6.1-rc"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/createPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function extractTarball(tarball: Uint8Array) {
new Gunzip((chunk) => chunks.push(chunk)).push(tarball, /*final*/ true);
} catch (err: any) {
// this happens for zero-padded tarballs; can safely ignore
if (err.code != FlateErrorCode.InvalidHeader) {
if (err.code !== FlateErrorCode.InvalidHeader) {
throw err;
}
}
Expand All @@ -310,7 +310,7 @@ function extractTarball(tarball: Uint8Array) {
unzipped.set(chunk, offset);
offset += chunk.length;
}
const data = untar(unzipped);
const data = untar(unzipped.buffer);
const prefix = data[0].filename.substring(0, data[0].filename.indexOf("/") + 1);
const packageJsonText = data.find((f) => f.filename === `${prefix}package.json`)?.fileData;
const packageJson = JSON.parse(new TextDecoder().decode(packageJsonText));
Expand Down
8 changes: 4 additions & 4 deletions packages/history/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
}
},
"scripts": {
"tsc": "tsc -b",
"build:scripts": "tsc -b scripts",
"tsgo": "tsgo -b",
"build:scripts": "tsgo -b scripts",
"generate": "pnpm build:scripts && tsx scripts/generateFull.ts",
"prepublishOnly": "pnpm tsc && pnpm generate"
"prepublishOnly": "pnpm tsgo && pnpm generate"
},
"dependencies": {
"@arethetypeswrong/core": "workspace:*"
},
"devDependencies": {
"@azure/storage-blob": "^12.14.0",
"@types/cli-progress": "^3.11.0",
"@types/node": "^22.5.0",
"@types/node": "^25.9.1",
"@types/pacote": "^11.1.5",
"@types/semver": "^7.5.0",
"cli-progress": "^3.12.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/history/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function getVersionsAtDateWithTypes(date, versionsByDate, data) {
/**
* @typedef {{
* packageName: string;
* fixedByVersion: string;
* fixedByVersion: string | undefined;
* fixedByDate: string;
* }} FixedPackage
*/
Expand Down
1 change: 1 addition & 0 deletions packages/history/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "lib",
"types": ["node"]
},
Expand Down
5 changes: 3 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"main": "index.js",
"scripts": {
"tsc": "tsc -b",
"tsgo": "tsgo -b",
"build": "vite build",
"start": "vite dev"
},
Expand All @@ -16,7 +16,8 @@
"@arethetypeswrong/core": "workspace:*",
"immer": "^9.0.21",
"marked": "^5.1.0",
"nprogress": "^0.2.0"
"nprogress": "^0.2.0",
"typescript": "5.6.1-rc"
},
"devDependencies": {
"@types/marked": "^5.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"outDir": "lib"
"outDir": "lib",
"noUncheckedSideEffectImports": false,
},
"include": ["src", "package.json"],
"references": [
Expand Down
Loading
Loading