Skip to content

Commit

Permalink
fix issues with package.json
Browse files Browse the repository at this point in the history
when running a dry-run publish, npm complains about these fields:
```
$ npm publish --access public --loglevel verbose --dry-run
...
npm warn publish npm auto-corrected some errors in your package.json when publishing.  Please run "npm pkg fix" to address these errors.
npm warn publish errors corrected:
npm warn publish "bin[fauna]" script name was cleaned
npm warn publish "repository" was changed from a string to an object
npm warn publish "repository.url" was normalized to "git+https://github.com/fauna/fauna-shell.git"
...
```

resolved by running `npm pkg fix`
  • Loading branch information
echo-bravo-yahoo committed Dec 17, 2024
1 parent 00b81f1 commit fbf5dd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Fauna",
"type": "module",
"bin": {
"fauna": "./dist/cli.cjs"
"fauna": "dist/cli.cjs"
},
"bugs": "https://github.com/fauna/fauna-shell/issues",
"dependencies": {
Expand Down Expand Up @@ -72,7 +72,10 @@
],
"license": "MPL-2.0",
"main": "./src/user-entrypoint.mjs",
"repository": "fauna/fauna-shell",
"repository": {
"type": "git",
"url": "git+https://github.com/fauna/fauna-shell.git"
},
"scripts": {
"lint": "eslint . --fix",
"test": "npm run test:local",
Expand Down

0 comments on commit fbf5dd8

Please sign in to comment.