tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

generate_module_package_json.ts (381B)


      1 /**
      2 * @license
      3 * Copyright 2022 Google Inc.
      4 * SPDX-License-Identifier: Apache-2.0
      5 */
      6 
      7 import {mkdirSync, writeFileSync} from 'node:fs';
      8 import {dirname} from 'node:path';
      9 
     10 /**
     11 * Outputs the dummy package.json file to the path specified
     12 * by the first argument.
     13 */
     14 mkdirSync(dirname(process.argv[2]), {recursive: true});
     15 writeFileSync(process.argv[2], `{"type": "module"}`);