chore(appium): experimental build via tsc
MODIFY
config/tsconfig.base.json
config/tsconfig.base.json
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
- "module": "es2015",
+ "module": "CommonJS",
"moduleResolution": "node",
"resolveJsonModule": true,
"strictNullChecks": true,
"removeComments": false,
- "target": "es2015",
+ "target": "ESNext",
"types": ["node", "mocha", "chai", "sinon-chai", "chai-as-promised"]
}
}

MODIFY
package.json
package.json
"packages/*"
],
"scripts": {
- "build": "run-s build:distfiles build:types",
+ "build": "run-s build:types build:distfiles",
"build:distfiles": "lerna run build",
"build:types": "tsc -b",
"clean": "run-s clean:artifacts clean:packages clean:monorepo",

MODIFY
packages/appium/package.json
packages/appium/package.json
"types"
],
"scripts": {
- "build": "babel lib --source-maps --root-mode=upward --out-dir=build/lib",
+ "build": "exit 0",
"build:docs": "node docs/scripts/build-docs.js",
"build:docs:cli": "node docs/scripts/gen-cli-args-docs.js",
"build:docs:assets": "node docs/scripts/copy-assets.js",
"fix": "npm run lint -- --fix",
"postinstall": "node ./scripts/autoinstall-extensions.js",
"lint": "eslint -c ../../.eslintrc --ignore-path ../../.eslintignore .",
- "prepare": "npm run build",
+ "prepare": "tsc -b",
"publish:docs": "cross-env APPIUM_DOCS_PUBLISH=1 npm run build:docs",
"test": "npm run test:unit",
"test:e2e": "mocha --timeout 1m --slow 30s \"./test/e2e/**/*.spec.js\"",

MODIFY
packages/appium/tsconfig.json
packages/appium/tsconfig.json
"@appium/schema": ["../schema"],
"appium": ["."]
},
- "checkJs": true
+ "checkJs": true,
+ "emitDeclarationOnly": false
},
"include": ["lib", "types"],
"references": [

chore(appium): experimental build via tsc