From a7bb8ccce85c6e8bd619cce32d34a5d372ef85b7 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sat, 2 Mar 2019 09:33:28 +0900 Subject: Add Deno.version.gnArgs (#1845) To display specific build args passed to GN. --- rollup.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rollup.config.js') 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 -- cgit v1.2.3