borp 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/run.js +1 -1
  2. package/package.json +4 -1
package/lib/run.js CHANGED
@@ -25,7 +25,7 @@ export default async function runWithTypeScript (config) {
25
25
  let tscPath
26
26
 
27
27
  if (tsconfigPath) {
28
- const _require = createRequire(cwd)
28
+ const _require = createRequire(tsconfigPath)
29
29
  const typescriptPathCWD = _require.resolve('typescript')
30
30
  tscPath = join(typescriptPathCWD, '..', '..', 'bin', 'tsc')
31
31
  if (tscPath) {
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "borp",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "node:test wrapper with TypeScript support",
6
6
  "main": "borp.js",
7
+ "bin": {
8
+ "borp": "borp.js"
9
+ },
7
10
  "scripts": {
8
11
  "clean": "rm -rf fixtures/*/dist .test-*",
9
12
  "lint": "standard | snazzy",