Skip to content

Commit

Permalink
change module to ES & update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dalenguyen committed Oct 9, 2022
1 parent 38f25b7 commit 2f891d3
Show file tree
Hide file tree
Showing 11 changed files with 295 additions and 408 deletions.
12 changes: 12 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json.schemastore.org/mocharc",
"extension": ["ts"],
"loader": "ts-node/esm",
"spec": ["test/**/*.spec.ts"],
"timeout": 60000,
"exit": true,
"node-option": [
"experimental-specifier-resolution=node",
"loader=ts-node/esm"
]
}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
auto-install-peers=true
strict-peer-dependencies=false
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
---

## [1.3.0] - 2022-10-09

#### - :nail_care: [Polish]

- turn the package to use es module
- update packages

## [1.2.1] - 2022-08-24

#### - :nail_care: [Polish]
Expand Down
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "firestore-export-import",
"version": "1.2.1",
"version": "1.3.0",
"description": "NPM package for backup and restore Firebase Firestore",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"files": [
"readme.md",
"dist/*.*.*",
"dist/*.*"
],
"scripts": {
"watch": "tsc -w",
"test": "mocha --timeout 60000 --exit -r ts-node/register test/**/*.spec.ts",
"test": "mocha",
"build": "tsc --skipLibCheck && npm run minify",
"minify": "jsmin -o dist/index.js dist/index.js && jsmin -o dist/import.js dist/import.js && jsmin -o dist/export.js dist/export.js && jsmin -o dist/helper.js dist/helper.js"
},
Expand All @@ -27,7 +28,7 @@
"import",
"export"
],
"author": "Dale Nguyen <dungnq@itbox4vn.com> (http://dalenguyen.me)",
"author": "Dale Nguyen <dale@dalenguyen.me> (http://dalenguyen.me)",
"license": "ISC",
"bugs": {
"url": "https://github.com/dalenguyen/firestore-backup-restore/issues"
Expand All @@ -37,25 +38,26 @@
"@types/chai": "^4.3.3",
"@types/expect": "^24.3.0",
"@types/mocha": "^9.1.1",
"@types/node": "^18.7.13",
"@types/node": "^18.8.3",
"chai": "^4.3.6",
"jsmin": "^1.0.1",
"minimist": "^1.2.6",
"minimist": "1.2.6",
"mocha": "^10.0.0",
"request": "^2.88.2",
"request-promise": "^4.2.6",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
"typescript": "^4.8.4"
},
"dependencies": {
"firebase-admin": "^11.0.1",
"google-gax": "^3.2.1",
"firebase-admin": "^11.1.0",
"google-gax": "^3.5.2",
"uuid": "^8.3.2"
},
"resolutions": {
"minimist": "1.2.6"
},
"engines": {
"node": ">=16.0.0"
"node": ">=16.0.0",
"pnpm": ">=7"
}
}
Loading

0 comments on commit 2f891d3

Please sign in to comment.