Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
NPM pack for easier local testing and .npmignore test files
  • Loading branch information
jamesdaniels committed Feb 11, 2020
commit 8ac5b1f00e68b4cc8404aef9745ccd9ed3dd6c38
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ reactfire/pub/**
pub
yarn-error.log
reactfire/database-debug.log
reactfire/reactfire-*.tgz
3 changes: 3 additions & 0 deletions reactfire/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cjs/index.esm-*
**/*.test.d.ts
**/*.test.js
2 changes: 1 addition & 1 deletion reactfire/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test": "yarn build && firebase emulators:exec --only firestore,database \"jest --rootDir pub --no-cache --verbose --detectOpenHandles --forceExit\"",
"copy-package-json": "cp package.pub.json pub/reactfire/package.json",
"watch": "yarn build && tsc --watch",
"build": "rm -rf pub && tsc && yarn copy-package-json && cp ../README.md pub/reactfire/README.md && cp ../LICENSE pub/reactfire/LICENSE && rollup -c"
"build": "rm -rf pub && tsc && yarn copy-package-json && cp ../README.md pub/reactfire/README.md && cp ../LICENSE pub/reactfire/LICENSE && rollup -c && cp ./.npmignore pub/reactfire/ && npm pack ./pub/reactfire"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion reactfire/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default {
'rxfire/firestore',
'rxfire/storage',
'rxjs',
'rxjs/operators'
'rxjs/operators',
'tslib'
],
plugins: [resolve()]
};
1 change: 0 additions & 1 deletion reactfire/useObservable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export function preloadObservable<T>(source: Observable<T>, id: string) {
if (preloadedObservables.has(id)) {
return preloadedObservables.get(id) as SuspenseSubject<T>;
} else {
console.log(id);
const observable = new SuspenseSubject(source, DEFAULT_TIMEOUT);
preloadedObservables.set(id, observable);
return observable;
Expand Down