summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-03-07 09:11:49 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-03-11 19:05:51 -0400
commit8828bb8c0e743d9ac2b13a144ea4565d6d2ea7fc (patch)
tree4fea34a462790b4072095567a71901b583108c50
parent72f9a2e20de7839deb446b5cb6bc6dd7e5faf4f2 (diff)
Rename Deno.build.gnArgs to Deno.build.args
-rw-r--r--js/build.ts6
-rw-r--r--js/build_test.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/js/build.ts b/js/build.ts
index b2f52dbc1..e883cdba0 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 7ef39a040..106b5b184 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);
});