-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
686 additions
and
2,724 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as fs from 'fs'; | ||
|
||
// read file into JSON | ||
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf-8')); | ||
|
||
// adjust pkg json however you like .. | ||
delete pkg["devDependencies"]; | ||
|
||
// write it to your output directory | ||
fs.writeFileSync( | ||
'./package/package.json', // path to your output directory may vary | ||
JSON.stringify(pkg, null, 2) | ||
); | ||
|
||
console.log("Created package.json"); |
Oops, something went wrong.