diff --git a/index.ts b/lib/index.ts similarity index 63% rename from index.ts rename to lib/index.ts index 493d587..cf516a4 100644 --- a/index.ts +++ b/lib/index.ts @@ -1,4 +1,4 @@ -import { Simctl } from './lib/simctl'; +import {Simctl} from './simctl'; export type { SimctlOpts, DeviceInfo, @@ -7,7 +7,7 @@ export type { CertOptions, XCRun, AppInfo, -} from './lib/types'; +} from './types'; -export { Simctl }; +export {Simctl}; export default Simctl; diff --git a/package.json b/package.json index dca15c2..fec4d22 100644 --- a/package.json +++ b/package.json @@ -20,15 +20,13 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0", "npm": ">=10" }, - "main": "./build/index.js", + "main": "./build/lib/index.js", "bin": {}, "directories": { "lib": "./lib" }, "files": [ - "index.ts", "lib", - "build/index.*", "build/lib", "CHANGELOG.md" ], @@ -80,7 +78,7 @@ "semantic-release": "^25.0.2", "sinon": "^21.0.0", "ts-node": "^10.9.1", - "typescript": "^5.4.3" + "typescript": "^6.0.2" }, - "types": "./build/index.d.ts" + "types": "./build/lib/index.d.ts" } diff --git a/tsconfig.json b/tsconfig.json index 1e06ded..56f8c27 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,13 +2,17 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "@appium/tsconfig/tsconfig.json", "compilerOptions": { - "strict": false, "esModuleInterop": true, "outDir": "build", "types": ["node", "mocha"] }, + "ts-node": { + "transpileOnly": true, + "compilerOptions": { + "rootDir": "." + } + }, "include": [ - "index.ts", "lib", "test" ]