mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
[TS] Fixup TS test run at CI (#9004)
This commit is contained in:
@@ -62,16 +62,10 @@ def flatc(
|
||||
|
||||
# Execute esbuild with the specified parameters
|
||||
def esbuild(input, output):
|
||||
cmd = ["esbuild", input, "--outfile=" + output]
|
||||
cmd = ["../../node_modules/.bin/esbuild", input, "--outfile=" + output]
|
||||
cmd += ["--format=cjs", "--bundle", "--external:flatbuffers"]
|
||||
check_call(cmd)
|
||||
|
||||
|
||||
print("Removing node_modules/ directory...")
|
||||
shutil.rmtree(Path(tests_path, "node_modules"), ignore_errors=True)
|
||||
|
||||
check_call(["npm", "install", "--silent"])
|
||||
|
||||
flatc(
|
||||
options=[
|
||||
"--ts",
|
||||
@@ -228,12 +222,12 @@ flatc(
|
||||
)
|
||||
|
||||
print("Running TypeScript Compiler...")
|
||||
check_call(["tsc"])
|
||||
check_call(["../../node_modules/.bin/tsc"])
|
||||
print(
|
||||
"Running TypeScript Compiler in old node resolution mode for"
|
||||
" no_import_ext..."
|
||||
)
|
||||
check_call(["tsc", "-p", "./tsconfig.node.json"])
|
||||
check_call(["../../node_modules/.bin/tsc", "-p", "./tsconfig.node.json"])
|
||||
|
||||
NODE_CMD = ["node"]
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"flatbuffers": "../../"
|
||||
"flatbuffers": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
10
tests/ts/pnpm-lock.yaml
generated
10
tests/ts/pnpm-lock.yaml
generated
@@ -1,10 +0,0 @@
|
||||
lockfileVersion: '6.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
dependencies:
|
||||
flatbuffers:
|
||||
specifier: ../../
|
||||
version: link:../..
|
||||
Reference in New Issue
Block a user