summaryrefslogtreecommitdiff
path: root/rollup.config.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-03-02 09:33:28 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-03-01 19:33:28 -0500
commita7bb8ccce85c6e8bd619cce32d34a5d372ef85b7 (patch)
treeb42939351072d2063f4ca0756ac638ed9531880d /rollup.config.js
parent8c310d3d56c6b1bc67ee81d8c5ea9b20abee8088 (diff)
Add Deno.version.gnArgs (#1845)
To display specific build args passed to GN.
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rollup.config.js b/rollup.config.js
index 34f998b73..9c69fcf2a 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -20,6 +20,7 @@ const typescriptPath = path.resolve(
__dirname,
"third_party/node_modules/typescript/lib/typescript.js"
);
+const gnArgs = fs.readFileSync("gen/gn_args.txt", "utf-8").trim();
// We will allow generated modules to be resolvable by TypeScript based on
// the current build path
@@ -228,7 +229,8 @@ export default function makeConfig(commandOptions) {
// replace strings
replace({
- TS_VERSION: typescript.version
+ TS_VERSION: typescript.version,
+ GN_ARGS: gnArgs
}),
// would prefer to use `rollup-plugin-virtual` to inject the empty module, but there