Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rename main module from angularfire to angularfire2
- Loading branch information
1 parent
2e85666
commit 52bceca
Showing
9 changed files
with
39 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* This is only necessary in order | ||
* to make angularfire2 importable inside the | ||
* generated bundle, instead of angularfire2/angularfire2 | ||
*/ | ||
export * from './angularfire2/angularfire2'; |
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
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
File renamed without changes.
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
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
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
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,14 @@ | ||
/** | ||
* Rewrite the package.json that gets published to npm. | ||
* * Change main to point to angularfire.js instead of dist/angularfire.js | ||
* * Change angular2 to be a peer dependency | ||
*/ | ||
var fs = require('fs'); | ||
var srcPackage = require('../package.json'); | ||
var outPackage = Object.assign({}, srcPackage, { | ||
peerDependencies: srcPackage.dependencies, | ||
main: "angularfire2.js" | ||
}); | ||
delete outPackage.dependencies; | ||
|
||
fs.writeFileSync('./dist/package.json', JSON.stringify(outPackage, null, 2)); |
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