diff --git a/js/build.ts b/js/build.ts index b2f52dbc14..e883cdba09 100644 --- a/js/build.ts +++ b/js/build.ts @@ -9,8 +9,8 @@ export interface BuildInfo { /** The operating system platform. */ os: OSType; - /** The GN build arguments */ - gnArgs: string; + /** The arguments passed to GN during build. See `gn help buildargs`. */ + args: string; } /** The operating system platform. */ @@ -26,7 +26,7 @@ export const build: BuildInfo = { // These string will be replaced by rollup arch: `ROLLUP_REPLACE_ARCH` as any, os: `ROLLUP_REPLACE_OS` as any, - gnArgs: `ROLLUP_REPLACE_GN_ARGS` + args: `ROLLUP_REPLACE_GN_ARGS` /* eslint-enable @typescript-eslint/no-explicit-any */ }; diff --git a/js/build_test.ts b/js/build_test.ts index 7ef39a0401..106b5b1842 100644 --- a/js/build_test.ts +++ b/js/build_test.ts @@ -10,5 +10,5 @@ test(function buildInfo() { }); test(function buildGnArgs() { - assert(Deno.build.gnArgs.length > 100); + assert(Deno.build.args.length > 100); });