-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Other deps (major) (major) (#1489)
* Update Other deps (major) * Switch build files to .mjs * Update yarn * Freeze some deps * Update packages * Update knip config to .mjs scripts --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jean-Yves Moyen <[email protected]>
- Loading branch information
1 parent
7c4bf2b
commit 96c617c
Showing
29 changed files
with
2,979 additions
and
2,806 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { system } from "./common/system.mjs"; | ||
import { flags } from "./common/flags.mjs"; | ||
import { builder } from "./common/builder.mjs"; | ||
|
||
system.exit(builder.clean(flags.project)); |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import ts from "typescript"; | ||
|
||
import { host } from "./host.mjs"; | ||
import { flags } from "./flags.mjs"; | ||
|
||
export const builder = ts.createSolutionBuilder(host, ["tsconfig.json"], { | ||
force: flags.force, | ||
verbose: true, // verbosity is now managed by different reporter implementations | ||
}); |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import ts from "typescript"; | ||
|
||
import { system } from "./system.mjs"; | ||
import * as reporter from "./reporter.mjs"; | ||
|
||
export const host = ts.createSolutionBuilderWithWatchHost( | ||
system, | ||
/* createProgram */ undefined, | ||
reporter.diagnostic, | ||
reporter.status.build, | ||
reporter.status.watch, | ||
); |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ts from "typescript"; | ||
|
||
/** | ||
* @type {ts.System} | ||
*/ | ||
export const system = ts.sys; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import async from "async"; | ||
import { execaNode } from "execa"; | ||
import os from "os"; | ||
|
||
import { builder } from "./common/builder.mjs"; | ||
import { flags } from "./common/flags.mjs"; | ||
import { system } from "./common/system.mjs"; | ||
|
||
const status = builder.build(flags.project); | ||
|
||
if (status !== 0) { | ||
system.exit(status); | ||
} | ||
|
||
test(flags.project); | ||
|
||
function test(root = "packages") { | ||
async.eachLimit( | ||
system.readDirectory(root, [".spec.ts", ".spec.tsx"], ["node_modules"]), | ||
os.cpus().length, | ||
(fileName, done) => { | ||
execaNode(fileName.replace(/\.tsx?$/, ".js"), [], { | ||
nodeOptions: [...process.execArgv, "--enable-source-maps"], | ||
stdio: "inherit", | ||
}).then( | ||
() => done(), | ||
(err) => done(err), | ||
); | ||
}, | ||
(err) => { | ||
if (err) { | ||
system.exit(1); | ||
} | ||
}, | ||
); | ||
} |
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.