Skip to content

Commit 1d032de

Browse files
committed
Fix cli
1 parent 8c15714 commit 1d032de

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ views.db
22
node_modules
33
.DS_STORE
44
coverage
5+
dist

cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
const { exec } = require('shelljs')
44

55
exec('npm start', {
6+
async: true,
67
cwd: __dirname
78
})

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{
22
"name": "micro-analytics-cli",
3-
"version": "0.1.3",
3+
"version": "0.1.4-4",
44
"description": "Public analytics as a Node.js microservice, no sysadmin experience required.",
55
"bin": {
66
"micro-analytics": "./cli.js"
77
},
8+
"files": [
9+
"dist",
10+
"cli.js"
11+
],
812
"scripts": {
9-
"start": "micro src/index.js",
13+
"start": "micro dist/index.js",
14+
"build": "./node_modules/.bin/async-to-gen src --out-dir dist",
15+
"prepublish": "npm run build",
1016
"dev": "NODE_ENV=development nodemon --config package.json src/index.js",
1117
"test": "jest"
1218
},
@@ -20,6 +26,7 @@
2026
"shelljs": "^0.7.6"
2127
},
2228
"devDependencies": {
29+
"async-to-gen": "^1.3.0",
2330
"babel-jest": "^18.0.0",
2431
"babel-plugin-transform-async-to-generator": "^6.16.0",
2532
"babel-polyfill": "^6.20.0",

yarn.lock

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ async-to-gen@1.1.4:
9999
babylon "^6.11.4"
100100
magic-string "^0.16.0"
101101

102+
async-to-gen@^1.3.0:
103+
version "1.3.0"
104+
resolved "https://registry.yarnpkg.com/async-to-gen/-/async-to-gen-1.3.0.tgz#ec1ab301ca5881de64e8ad654cd96bfd5fcc4366"
105+
dependencies:
106+
babylon "^6.14.0"
107+
magic-string "^0.19.0"
108+
102109
async@^1.4.0, async@^1.4.2:
103110
version "1.5.2"
104111
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
@@ -335,7 +342,7 @@ babel-types@^6.16.0, babel-types@^6.18.0, babel-types@^6.20.0, babel-types@^6.21
335342
lodash "^4.2.0"
336343
to-fast-properties "^1.0.1"
337344

338-
babylon@^6.11.0, babylon@^6.11.4, babylon@^6.13.0:
345+
babylon@^6.11.0, babylon@^6.11.4, babylon@^6.13.0, babylon@^6.14.0:
339346
version "6.14.1"
340347
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.14.1.tgz#956275fab72753ad9b3435d7afe58f8bf0a29815"
341348

@@ -1421,6 +1428,12 @@ magic-string@^0.16.0:
14211428
dependencies:
14221429
vlq "^0.2.1"
14231430

1431+
magic-string@^0.19.0:
1432+
version "0.19.0"
1433+
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.19.0.tgz#198948217254e3e0b93080e01146b7c73b2a06b2"
1434+
dependencies:
1435+
vlq "^0.2.1"
1436+
14241437
makeerror@1.0.x:
14251438
version "1.0.11"
14261439
resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c"

0 commit comments

Comments
 (0)