Skip to content

Commit

Permalink
ci: on publish remove devDependencies & scripts
Browse files Browse the repository at this point in the history
and add a dummy 'test' script with a message to run tests etcetera on the ci (and so socket.dev doesn't shows its bogus warning about missing tests, which shouldn't be on npmjs in the first place)
  • Loading branch information
sverweij committed Jan 29, 2024
1 parent 1fd8c68 commit de728a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 14 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@typescript-eslint/parser": "6.19.1",
"chai": "^4.4.1",
"chai-xml": "0.4.1",
"clean-pkg-json": "1.2.0",
"dependency-cruiser": "16.1.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
Expand Down Expand Up @@ -100,6 +101,7 @@
"depcruise:graph:png": "depcruise src test --output-type dot | dot -Gdpi=192 -T png | pngquant - > docs/dependencygraph.png",
"lint": "tslint --project .",
"lint:fix": "tslint --fix --project .",
"prepack": "clean-pkg-json --dry | jq '.scripts = {test: \"echo for test, build and static analysis scripts: see the github repository\"}' > smaller-package.json && shx mv smaller-package.json package.json",
"prepublishOnly": "npm run check",
"scm:push": "run-p --aggregate-output scm:push:*",
"scm:push:github": "run-p --aggregate-output scm:push:github:*",
Expand All @@ -124,7 +126,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/mscgenjs/mscgenjs-core"
"url": "git+https://github.com/mscgenjs/mscgenjs-core.git"
},
"author": "Sander Verweij",
"license": "GPL-3.0",
Expand Down

0 comments on commit de728a7

Please sign in to comment.