Sign in
pigweed
/
third_party
/
github
/
bazel-contrib
/
rules_nodejs
/
8b43896eb586d43f99ae656d4e0478764beafe81
/
.
/
internal
/
node
/
test
/
expand_variables.js
blob: 60831552f699224b32798f2ae94dc6f8f9b99a2c [
file
]
const
fs
=
require
(
'fs'
);
const
args
=
process
.
argv
.
slice
(
2
);
const
outfile
=
args
.
shift
();
args
.
push
(
process
.
env
[
'SOME_OTHER_ENV'
]);
fs
.
writeFileSync
(
outfile
,
JSON
.
stringify
(
args
,
null
,
2
),
'utf-8'
);