Skip to content

Commit 4b6507d

Browse files
committed
Transpile async functions
1 parent b098645 commit 4b6507d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules
2+
dist.js
3+
npm-debug.log

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
"name": "micro-analytics-adapter-flat-file-db",
33
"version": "1.0.0",
44
"description": "Store your micro-analytics data in flat-file-db!",
5-
"main": "index.js",
5+
"main": "dist.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"build": "async-to-gen index.js --out-file dist.js",
9+
"prepublish": "npm run build"
810
},
911
"repository": {
1012
"type": "git",
@@ -27,5 +29,8 @@
2729
},
2830
"peerDependencies": {
2931
"micro-analytics": "^1.2.0"
32+
},
33+
"devDependencies": {
34+
"async-to-gen": "^1.3.0"
3035
}
3136
}

0 commit comments

Comments
 (0)