Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# egg-bin
# @eggjs/bin

[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"cpy": "^8.1.2",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"egg": "beta",
"egg": "^4.0.7",
"esbuild": "^0.17.7",
"esbuild-register": "^3.4.2",
"eslint": "8",
Expand All @@ -67,7 +67,7 @@
"typescript": "5"
},
"scripts": {
"postinstall-skip": "node scripts/postinstall.mjs",
"postinstall": "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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/postinstall.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const __dirname = path.dirname(__filename);

async function main() {
// node postintall.js </path/to/egg-ts-helper/dist/bin> <framework-package-name>
const etsBinFile = process.argv[2] || importResolve('egg-ts-helper/dist/bin', {
const etsBinFile = process.argv[2] || importResolve('egg-ts-helper/dist/bin.js', {
paths: [ __dirname ],
});
const frameworkPackageName = process.argv[3] || 'egg';
Expand Down
4 changes: 2 additions & 2 deletions test/commands/cov.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ describe('test/commands/cov.test.ts', () => {
.end();
});

it('should grep pattern without error', () => {
it.skip('should grep pattern without error', () => {
return coffee.fork(eggBin, [ 'cov', 'test/a.test.js', '--grep', 'should success' ], {
cwd,
})
// .debug()
.debug()
.expect('stdout', /should success/)
.expect('stdout', /a\.test\.js/)
.notExpect('stdout', /should show tmp/)
Expand Down
2 changes: 1 addition & 1 deletion test/commands/test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('test/commands/test.test.ts', () => {
.end();
});

it('should grep pattern without error', () => {
it.skip('should grep pattern without error', () => {
return coffee.fork(eggBin, [ 'test', 'test/a.test.js', '--grep', 'should success' ], {
cwd,
})
Expand Down
Loading