D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
ebrokers.online
/
node_modules
/
input-format
/
runnable
/
Filename :
create-commonjs-package-json.js
back
Copy
// Creates a `package.json` file in the CommonJS build folder. // That marks that whole folder as CommonJS so that Node.js doesn't complain // about `require()`-ing those files. import fs from 'fs' fs.writeFileSync('./commonjs/package.json', JSON.stringify({ name: 'input-format/commonjs', type: 'commonjs', private: true }, null, 2), 'utf8')