Skip to content

Commit

Permalink
support coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 27, 2024
1 parent b08f033 commit 961eb75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions bin/dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning
#!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning --no-deprecation

import { execute } from '@oclif/core';

await execute({ development: true, dir: import.meta.url });
await execute({
// development: true,
dir: import.meta.url,
});
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@
"postinstall-skip": "node scripts/postinstall.mjs",
"lint": "eslint --cache src test --ext .ts",
"pretest": "npm run clean && npm run lint -- --fix && npm run prepublishOnly",
"test": "node bin/run.js test",
"test": "./bin/run.js test",
"cov": "c8 --temp-directory node_modules/.c8_output -r text-summary -r json-summary -r json -r lcov -r cobertura npm test",
"preci": "npm run clean && npm run lint && npm run prepublishOnly",
"ci": "npm test",
"ci": "npm run cov",
"clean": "rimraf dist",
"copyScripts": "rimraf dist/scripts && cpy scripts dist",
"prepublishOnly": "tshy && tshy-after && attw --pack && npm run copyScripts"
Expand Down

0 comments on commit 961eb75

Please sign in to comment.