Skip to content

Commit

Permalink
update treport, use import-jsx fork
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Nov 26, 2021
1 parent c9ada3e commit d1428e6
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
if (__filename !== process.argv[1] || process.argv.length < 3)
throw new Error('this should only be used to load a jsx file')
process.argv.splice(1, 2, require('path').resolve(process.argv[2]))
require('import-jsx')(process.argv[1])
require('@isaacs/import-jsx')(process.argv[1])
2 changes: 1 addition & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ const makeReporter = exports.makeReporter = function (tap, options) {
// resolve to cwd if it's a relative path
const rmod = /^\.\.?[\\\/]/.test(reporter) ? path.resolve(reporter) : reporter
// it'll often be jsx, and this is harmless if it isn't.
const R = require('import-jsx')(rmod)
const R = require('@isaacs/import-jsx')(rmod)
if (typeof R !== 'function' || !R.prototype)
throw new Error(
`Invalid reporter: non-class exported by ${reporter}`)
Expand Down
91 changes: 89 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"node": ">=10"
},
"dependencies": {
"@isaacs/import-jsx": "^4.0.1",
"@types/react": "^17",
"chokidar": "^3.3.0",
"coveralls": "^3.0.11",
"findit": "^2.0.0",
"foreground-child": "^2.0.0",
"fs-exists-cached": "^1.0.0",
"glob": "^7.1.6",
"import-jsx": "github:isaacs/import-jsx",
"ink": "^3.2.0",
"isexe": "^2.0.0",
"istanbul-lib-processinfo": "^2.0.2",
Expand Down Expand Up @@ -117,7 +117,7 @@
"ink",
"treport",
"@types/react",
"import-jsx",
"@isaacs/import-jsx",
"react"
],
"funding": {
Expand Down
2 changes: 1 addition & 1 deletion settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (+process.env.TAP_DEV_LONGSTACK !== 1) {
'libtap',
'tap',
'nyc',
'import-jsx',
'@isaacs/import-jsx',
'function-loop'
)
settings.stackUtils.internals.push(
Expand Down
2 changes: 1 addition & 1 deletion tap-snapshots/test/settings/default.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Object {
"libtap",
"tap",
"nyc",
"import-jsx",
"@isaacs/import-jsx",
"function-loop",
],
"internals": Array [],
Expand Down

0 comments on commit d1428e6

Please sign in to comment.