-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@whook/example): fix whook example run scripts
- Loading branch information
Showing
13 changed files
with
85 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,12 +146,12 @@ describe('initCreateWhook', () => { | |
await createWhook(); | ||
|
||
expect( | ||
JSON.parse( | ||
outputFile.mock.calls | ||
.find((call) => call[0].toString().endsWith('package.json'))?.[1] | ||
?.toString() || '', | ||
), | ||
).toMatchInlineSnapshot(` | ||
JSON.parse( | ||
outputFile.mock.calls. | ||
find((call) => call[0].toString().endsWith('package.json'))?.[1]?. | ||
toString() || '' | ||
) | ||
).toMatchInlineSnapshot(` | ||
{ | ||
"author": { | ||
"email": "[email protected]", | ||
|
@@ -262,18 +262,18 @@ describe('initCreateWhook', () => { | |
"build": "rimraf 'dist' && tsc --outDir dist", | ||
"cover": "npm run jest -- --coverage", | ||
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js", | ||
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/whook.js", | ||
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js", | ||
"format": "npm run prettier", | ||
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest", | ||
"lint": "eslint 'src/**/*.ts'", | ||
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js", | ||
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js", | ||
"prettier": "prettier --write 'src/**/*.ts'", | ||
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022", | ||
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js -- __inject repl", | ||
"start": "NODE_ENV=\${NODE_ENV:-development} node bin/whook.js", | ||
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl", | ||
"start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js", | ||
"test": "NODE_ENV=test npm run build && npm run jest", | ||
"type-check": "tsc --pretty --noEmit", | ||
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js", | ||
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js", | ||
"whook": "NODE_ENV=\${NODE_ENV:-development} whook", | ||
}, | ||
"type": "module", | ||
|
@@ -341,12 +341,12 @@ describe('initCreateWhook', () => { | |
await createWhook(); | ||
|
||
expect( | ||
JSON.parse( | ||
outputFile.mock.calls | ||
.find((call) => call[0].toString().endsWith('package.json'))?.[1] | ||
?.toString() || '', | ||
), | ||
).toMatchInlineSnapshot(` | ||
JSON.parse( | ||
outputFile.mock.calls. | ||
find((call) => call[0].toString().endsWith('package.json'))?.[1]?. | ||
toString() || '' | ||
) | ||
).toMatchInlineSnapshot(` | ||
{ | ||
"author": { | ||
"email": "[email protected]", | ||
|
@@ -457,18 +457,18 @@ describe('initCreateWhook', () => { | |
"build": "rimraf 'dist' && tsc --outDir dist", | ||
"cover": "npm run jest -- --coverage", | ||
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js", | ||
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/whook.js", | ||
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js", | ||
"format": "npm run prettier", | ||
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest", | ||
"lint": "eslint 'src/**/*.ts'", | ||
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js", | ||
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js", | ||
"prettier": "prettier --write 'src/**/*.ts'", | ||
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022", | ||
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js -- __inject repl", | ||
"start": "NODE_ENV=\${NODE_ENV:-development} node bin/whook.js", | ||
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl", | ||
"start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js", | ||
"test": "NODE_ENV=test npm run build && npm run jest", | ||
"type-check": "tsc --pretty --noEmit", | ||
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js", | ||
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js", | ||
"whook": "NODE_ENV=\${NODE_ENV:-development} whook", | ||
}, | ||
"type": "module", | ||
|
@@ -521,12 +521,12 @@ describe('initCreateWhook', () => { | |
await createWhook(); | ||
|
||
expect( | ||
JSON.parse( | ||
outputFile.mock.calls | ||
.find((call) => call[0].toString().endsWith('package.json'))?.[1] | ||
?.toString() || '', | ||
), | ||
).toMatchInlineSnapshot(` | ||
JSON.parse( | ||
outputFile.mock.calls. | ||
find((call) => call[0].toString().endsWith('package.json'))?.[1]?. | ||
toString() || '' | ||
) | ||
).toMatchInlineSnapshot(` | ||
{ | ||
"author": { | ||
"email": "[email protected]", | ||
|
@@ -637,18 +637,18 @@ describe('initCreateWhook', () => { | |
"build": "rimraf 'dist' && tsc --outDir dist", | ||
"cover": "npm run jest -- --coverage", | ||
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js", | ||
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/whook.js", | ||
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js", | ||
"format": "npm run prettier", | ||
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest", | ||
"lint": "eslint 'src/**/*.ts'", | ||
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js", | ||
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js", | ||
"prettier": "prettier --write 'src/**/*.ts'", | ||
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022", | ||
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js -- __inject repl", | ||
"start": "NODE_ENV=\${NODE_ENV:-development} node bin/whook.js", | ||
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl", | ||
"start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js", | ||
"test": "NODE_ENV=test npm run build && npm run jest", | ||
"type-check": "tsc --pretty --noEmit", | ||
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js", | ||
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js", | ||
"whook": "NODE_ENV=\${NODE_ENV:-development} whook", | ||
}, | ||
"type": "module", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.