diff --git a/index.ts b/index.ts deleted file mode 100644 index 8a28be3e2..000000000 --- a/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { bundleWDASim } from './lib/check-dependencies'; -export { NoSessionProxy } from './lib/no-session-proxy'; -export { WebDriverAgent } from './lib/webdriveragent'; -export { WDA_BASE_URL, WDA_RUNNER_BUNDLE_ID, PROJECT_FILE } from './lib/constants'; -export { resetTestProcesses, BOOTSTRAP_PATH } from './lib/utils'; - -export * from './lib/types'; diff --git a/lib/index.ts b/lib/index.ts new file mode 100644 index 000000000..4d78ec618 --- /dev/null +++ b/lib/index.ts @@ -0,0 +1,7 @@ +export {bundleWDASim} from './check-dependencies'; +export {NoSessionProxy} from './no-session-proxy'; +export {WebDriverAgent} from './webdriveragent'; +export {WDA_BASE_URL, WDA_RUNNER_BUNDLE_ID, PROJECT_FILE} from './constants'; +export {resetTestProcesses, BOOTSTRAP_PATH} from './utils'; + +export * from './types'; diff --git a/package.json b/package.json index 2e43649a3..67e92185b 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "appium-webdriveragent", "version": "11.4.1", "description": "Package bundling WebDriverAgent", - "main": "./build/index.js", - "types": "./build/index.d.ts", + "main": "./build/lib/index.js", + "types": "./build/lib/index.d.ts", "scripts": { "build": "tsc -b", "dev": "npm run build -- --watch", @@ -69,7 +69,7 @@ "semver": "^7.3.7", "sinon": "^21.0.0", "ts-node": "^10.9.1", - "typescript": "^5.4.2" + "typescript": "^6.0.2" }, "dependencies": { "@appium/base-driver": "^10.0.0-rc.1", @@ -85,9 +85,8 @@ "teen_process": "^4.0.7" }, "files": [ - "index.ts", "lib", - "build", + "build/lib", "Scripts/build.sh", "Scripts/*.mjs", "Configurations", @@ -97,7 +96,6 @@ "WebDriverAgentRunner", "WebDriverAgentTests", "XCTWebDriverAgentLib", - "CHANGELOG.md", - "!build/test" + "CHANGELOG.md" ] } diff --git a/tsconfig.json b/tsconfig.json index 0db4e3637..2c2b4cc0b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,14 +2,18 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "@appium/tsconfig/tsconfig.json", "compilerOptions": { - "strict": false, // TODO: make this flag true "esModuleInterop": true, "outDir": "build", "types": ["node", "mocha"], "checkJs": true }, + "ts-node": { + "transpileOnly": true, + "compilerOptions": { + "rootDir": "." + } + }, "include": [ - "index.ts", "lib", "test" ]