Skip to content

Commit

Permalink
restructure index.js location
Browse files Browse the repository at this point in the history
  • Loading branch information
jesuiterb committed Apr 22, 2020
1 parent 5e5a38b commit 71875c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "push-to-git",
"version": "1.1.4",
"description": "CLI tool to simplify deployment to 'external git repositories' or 'remote branches with attached onPush action webhooks'",
"main": "src/cli.js",
"main": "./src/index.js",
"bin": {
"push-to-git": "index.js"
"push-to-git": "./src/index.js"
},
"scripts": {
"test": "xo",
"start": "./index.js"
"start": "./src/index.js"
},
"repository": {
"type": "git",
Expand All @@ -33,7 +33,6 @@
"homepage": "https://github.com/bjesuiter/deploy-to-git#readme",
"files": [
"package.json",
"index.js",
"src",
"LICENSE",
"README.md",
Expand Down
4 changes: 2 additions & 2 deletions index.js → src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Set options as a parameter, environment variable, or rc file.

// This is a hack from the esm package enables es module loading for all other imports in src/cli.js
// This is a hack from the esm package enables es module loading for all other imports in cli.js
// eslint-disable-next-line no-global-assign
require = require('esm')(module);
module.exports = require('./src/cli.js');
module.exports = require('./cli.js');

0 comments on commit 71875c4

Please sign in to comment.