Skip to content

Commit

Permalink
Fix "commander" is not published.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Apr 19, 2022
1 parent 7720941 commit 1fe8fe5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ test-coverage:
lint:
npx eslint .

package:
npm pack

publish:
npm publish

Expand Down
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@
"type": "git",
"url": "git+/~https://github.com/sebastienrousseau/password-generator.git"
},
"rules": {
"node/no-unpublished-import": ["error", {
"convertPath": [
{
"include": ["src/**/*.js"],
"replace": ["^src/(.+)$", "lib/$1"]
}
]
}]
},
"scripts": {
"build": "npm run lint && npm run build:password:generator && cat ./package.json | grep -v '\"private\":' > dist/package.json && npm pack ./dist",
"build:password:generator": "npm run clean:directory && npm run create:directory && npm run copy:src && npm run copy:test && npm run copy:readme && npm run copy:license && npm run copy:copyright && npm run filesize:distribution",
Expand Down

0 comments on commit 1fe8fe5

Please sign in to comment.