Skip to content

Commit

Permalink
fix: move client to src and export properly
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Oct 19, 2023
1 parent e9343d4 commit 6238117
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion mocks/test.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { is, ok, equal } = require('uvu/assert')
const debug = require('debug')('app')
const { good, bad } = require('./lib')
const Client = require('../client')
const Client = require('../src/client')

describe('Array', () => {
describe('#indexOf()', () => {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"default": "./src/taps/index.js"
},
"./client": {
"types": "./dist/client/index.d.ts",
"default": "./dist/client/index.js"
"types": "./dist/src/client/index.d.ts",
"default": "./src/client/index.js"
}
},
"main": "src/runner.js",
Expand All @@ -45,7 +45,7 @@
"dist/src/taps/index.d.ts"
],
"client": [
"dist/client/index.d.ts"
"dist/src/client/index.d.ts"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion client/index.js → src/client/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const config = /** @type { import('../src/types.js').RunnerOptions} */ (
const config = /** @type { import('../types.js').RunnerOptions} */ (
/** @type { unknown } */ (process.env.PW_TEST)
)

Expand Down
File renamed without changes.
9 changes: 1 addition & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,5 @@
"moduleResolution": "node",
"outDir": "dist"
},
"include": [
"src",
"test.js",
"cli.js",
"package.json",
"mocks/tops",
"client"
]
"include": ["src", "test.js", "cli.js", "package.json", "mocks/tops"]
}

0 comments on commit 6238117

Please sign in to comment.