-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Use --experimental-transform-types"
This reverts commit d3b1caf.
- Loading branch information
1 parent
d3b1caf
commit c0e93a2
Showing
37 changed files
with
122 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,18 +11,17 @@ | |
"build": "pnpm tsc && pnpm -r build", | ||
"format": "prettier --write \"**/*.{ts,json,css}\"", | ||
"test": "pnpm -r test", | ||
"test-js": "pnpm tsc && pnpm -r test-js", | ||
"check-dts": "tsc -p tsconfig.check-dts.json", | ||
"start": "pnpm --filter @arethetypeswrong/web start", | ||
"version": "changeset version && pnpm install --lockfile-only" | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "^2.27.1", | ||
"prettier": "^3.0.3", | ||
"typescript": "npm:@typescript-deploys/[email protected]" | ||
"typescript": "5.6.1-rc" | ||
}, | ||
"engines": { | ||
"node": ">=22", | ||
"node": ">=18", | ||
"pnpm": ">=8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { access, readFile, writeFile } from "fs/promises"; | ||
import { execSync, type SpawnSyncReturns } from "child_process"; | ||
import assert from "node:assert"; | ||
import { spawnSync } from "node:child_process"; | ||
import { access, readFile, writeFile } from "node:fs/promises"; | ||
import { after, describe, test } from "node:test"; | ||
|
||
const attw = new URL("../src/index.ts", import.meta.url).pathname; | ||
const attw = `node ${new URL("../../dist/index.js", import.meta.url).pathname}`; | ||
const updateSnapshots = process.env.UPDATE_SNAPSHOTS || process.env.U; | ||
const testFilter = (process.env.TEST_FILTER || process.env.T)?.toLowerCase(); | ||
|
||
|
@@ -34,11 +34,11 @@ const tests = [ | |
|
||
[ | ||
"[email protected]", | ||
`--definitely-typed ${new URL("../../core/test/fixtures/@[email protected]", import.meta.url).pathname}`, | ||
`--definitely-typed ${new URL("../../../core/test/fixtures/@[email protected]", import.meta.url).pathname}`, | ||
], | ||
[ | ||
"[email protected]", | ||
`--definitely-typed ${new URL("../../core/test/fixtures/@[email protected]", import.meta.url).pathname}`, | ||
`--definitely-typed ${new URL("../../../core/test/fixtures/@[email protected]", import.meta.url).pathname}`, | ||
], | ||
|
||
["[email protected]", "--entrypoints-legacy --ignore-rules=cjs-only-exports-default"], | ||
|
@@ -68,22 +68,21 @@ describe("snapshots", async () => { | |
} | ||
|
||
test(fixture, async () => { | ||
const tarballPath = new URL(`../../core/test/fixtures/${tarball}`, import.meta.url).pathname; | ||
const { | ||
stdout, | ||
stderr, | ||
status = 1, | ||
} = spawnSync( | ||
process.execPath, | ||
[...process.execArgv, attw, tarballPath, ...(options ?? defaultOpts).split(" ")], | ||
{ | ||
const tarballPath = new URL(`../../../core/test/fixtures/${tarball}`, import.meta.url).pathname; | ||
let stdout; | ||
let stderr = ""; | ||
let exitCode = 0; | ||
try { | ||
stdout = execSync(`${attw} ${tarballPath} ${options ?? defaultOpts}`, { | ||
encoding: "utf8", | ||
stdio: "pipe", | ||
env: { ...process.env, FORCE_COLOR: "0", NODE_OPTIONS: "--no-warnings" }, | ||
}, | ||
); | ||
|
||
const snapshotURL = new URL(`snapshots/${fixture}.md`, import.meta.url); | ||
env: { ...process.env, FORCE_COLOR: "0" }, | ||
}); | ||
} catch (error) { | ||
stdout = (error as SpawnSyncReturns<string>).stdout; | ||
stderr = (error as SpawnSyncReturns<string>).stderr; | ||
exitCode = (error as SpawnSyncReturns<string>).status ?? 1; | ||
} | ||
const snapshotURL = new URL(`../snapshots/${fixture}.md`, import.meta.url); | ||
// prettier-ignore | ||
const expectedSnapshot = [ | ||
`# ${fixture}`, | ||
|
@@ -95,7 +94,7 @@ describe("snapshots", async () => { | |
"", | ||
"```", | ||
"", | ||
`Exit code: ${status}`, | ||
`Exit code: ${exitCode}`, | ||
].join("\n"); | ||
|
||
if ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from "./checkPackage.ts"; | ||
export * from "./createPackage.ts"; | ||
export type * from "./types.ts"; | ||
export * from "./checkPackage.js"; | ||
export * from "./createPackage.js"; | ||
export type * from "./types.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/core/src/internal/checks/exportDefaultDisagreement.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.