Skip to content

Commit 534a6f6

Browse files
committed
chore(npm): publish within dist folder with default export
1 parent b19e22e commit 534a6f6

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.spec.*
2+

package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "angularfire2",
3-
"version": "2.0.0-alpha.2",
3+
"version": "2.0.0-alpha.3",
44
"description": "",
5-
"main": "dist/angularfire.js",
5+
"main": "angularfire.js",
66
"scripts": {
77
"test": "npm run build; karma start",
8-
"build": "tsc",
8+
"build": "rm -rf dist; tsc && cp package.json README.md LICENSE .npmignore dist/",
99
"install_webdriver": "./node_modules/.bin/webdriver-manager update"
1010
},
11-
"files": [
12-
"dist",
13-
"LICENSE"
11+
"keywords": [
12+
"angular2",
13+
"angular",
14+
"firebase"
1415
],
1516
"repository": {
1617
"type": "git",

publish.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npm run build
2+
npm pack dist

src/angularfire.ts

+5
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ export const FIREBASE_PROVIDERS:any[] = [
1414

1515
export {FirebaseList, FirebaseListConfig} from './providers/firebase_list';
1616
export {FirebaseObservable} from './utils/firebase_observable';
17+
18+
// Helps Angular-CLI automatically add providers
19+
export default {
20+
providers: FIREBASE_PROVIDERS
21+
}

0 commit comments

Comments
 (0)