-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: follow Angular package format v4.0
Fixes #30
- Loading branch information
1 parent
7f98d70
commit f69956d
Showing
82 changed files
with
18,514 additions
and
7,849 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# compiled output | ||
/bundles | ||
/lib | ||
/dist | ||
/test/build | ||
/out-tsc | ||
|
||
# dependencies | ||
/node_modules | ||
|
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,23 @@ | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
|
||
const main = require('./package.json'); | ||
|
||
const json = require(path.resolve(__dirname, process.argv[2])); | ||
|
||
const exclude = [ | ||
'devDependencies', | ||
'scripts', | ||
'config', | ||
'private' | ||
]; | ||
|
||
Object.keys(main).forEach(key => { | ||
if (exclude.indexOf(key) === -1) { | ||
if (!json[key]) { | ||
json[key] = main[key]; | ||
} | ||
} | ||
}); | ||
|
||
fs.writeFileSync(path.resolve(__dirname, process.argv[3]), JSON.stringify(json, null, 2), 'utf8'); |
Oops, something went wrong.