Skip to content

Commit faf8d59

Browse files
Export some unchanged members in the firestore/exp SDK
1 parent 58e1b6f commit faf8d59

File tree

4 files changed

+25
-28
lines changed

4 files changed

+25
-28
lines changed

packages/firestore/exp/index.node.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,21 @@
1515
* limitations under the License.
1616
*/
1717

18-
// TODO(firestorexp): Export API
18+
export { FieldPath, documentId } from '../lite/src/api/field_path';
19+
20+
export {
21+
FieldValue,
22+
deleteField,
23+
increment,
24+
arrayRemove,
25+
arrayUnion,
26+
serverTimestamp
27+
} from '../lite/src/api/field_value';
28+
29+
export { setLogLevel } from '../src/util/log';
30+
31+
export { Blob } from '../src/api/blob';
32+
33+
export { GeoPoint } from '../src/api/geo_point';
34+
35+
export { Timestamp } from '../src/api/timestamp';

packages/firestore/exp/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "@firebase/firestore/exp",
3+
"description": "A tree-shakeable version of the Firestore SDK",
4+
"main": "../dist/exp/index.node.esm2017.js",
5+
"private": true
6+
}

packages/firestore/exp/src/api/foobar.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/firestore/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"prebuild": "tsc -m es2015 --moduleResolution node scripts/*.ts ",
1111
"prebuild:release": "yarn prebuild",
12-
"build": "rollup -c rollup.config.es2017.js && rollup -c rollup.config.es5.js && yarn build:lite",
12+
"build": "rollup -c rollup.config.es2017.js && rollup -c rollup.config.es5.js && yarn build:lite && yarn build:exp",
1313
"build:release": "rollup -c rollup.config.es2017.js && rollup -c rollup.config.es5.js",
1414
"build:deps": "lerna run --scope @firebase/'{app,firestore}' --include-dependencies build",
1515
"build:console": "node tools/console.build.js",

0 commit comments

Comments
 (0)