diff --git a/.gitignore b/.gitignore index 3e1b105..186e71a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # build output -dist packed +download/dist # dependencies node_modules diff --git a/placeholder.js b/download/placeholder.js similarity index 75% rename from placeholder.js rename to download/placeholder.js index a344a8b..893b004 100755 --- a/placeholder.js +++ b/download/placeholder.js @@ -4,8 +4,7 @@ var path = require('path') var fs = require('fs') -var dist = path.join(__dirname, 'dist') -var now = path.join(dist, 'now') +var now = path.join(__dirname, 'dist', 'now') fs.writeFileSync( now, diff --git a/postinstall.js b/download/postinstall.js similarity index 100% rename from postinstall.js rename to download/postinstall.js diff --git a/download/chmod.js b/download/src/chmod.js similarity index 100% rename from download/chmod.js rename to download/src/chmod.js diff --git a/download/index.js b/download/src/index.js similarity index 100% rename from download/index.js rename to download/src/index.js diff --git a/download/log.js b/download/src/log.js similarity index 100% rename from download/log.js rename to download/src/log.js diff --git a/download/webpack.js b/download/webpack.js index 4b44386..fb4d494 100644 --- a/download/webpack.js +++ b/download/webpack.js @@ -8,10 +8,10 @@ module.exports = { __filename: false }, entry: [ - './index.js' + './src/index.js' ], output: { - path: path.join(__dirname, '../dist'), + path: path.join(__dirname, 'dist'), filename: 'download.js' }, module: { diff --git a/package.json b/package.json index 3f6a577..de0ce6b 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "version": "6.0.0", "private": true, "scripts": { - "postinstall": "node postinstall.js", + "postinstall": "node download/postinstall.js", "precommit": "xo --quiet && lint-staged", - "prepublish": "in-install || (npm run webpack && node placeholder.js)", + "prepublish": "in-install || (npm run webpack && node download/placeholder.js)", "lint": "xo --quiet", "test": "npm run lint && ava", "pack": "pkg bin/now.js -c package.json -o packed/now", @@ -24,11 +24,10 @@ ] }, "bin": { - "now": "dist/now" + "now": "download/dist/now" }, "files": [ - "dist", - "postinstall.js" + "download" ], "ava": { "failFast": true, @@ -49,7 +48,6 @@ "git add" ] }, - "dependencies": {}, "devDependencies": { "@google/maps": "0.3.1", "alpha-sort": "2.0.1",