diff --git a/packages/schema/index.js b/packages/schema/index.js index 82c40761e..2441dc5a8 100644 --- a/packages/schema/index.js +++ b/packages/schema/index.js @@ -1 +1 @@ -module.exports = require('./build/index.js'); +module.exports = require('./build/lib/index.js'); diff --git a/packages/schema/package.json b/packages/schema/package.json index ef6aaeaed..40327b869 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -23,7 +23,7 @@ }, "license": "Apache-2.0", "author": "https://github.com/appium", - "types": "./build/index.d.ts", + "types": "./build/lib/index.d.ts", "files": [ "build", "lib", diff --git a/packages/schema/scripts/generate-schema-json.js b/packages/schema/scripts/generate-schema-json.js index e5064623e..15ee1cf17 100755 --- a/packages/schema/scripts/generate-schema-json.js +++ b/packages/schema/scripts/generate-schema-json.js @@ -29,7 +29,7 @@ const JSON_FILENAME = 'appium-config.schema.json'; /** * Path to the schema artifact. */ -const SCHEMA_SRC = path.join(SCHEMA_ROOT, 'build', 'appium-config-schema.js'); +const SCHEMA_SRC = path.join(SCHEMA_ROOT, 'build', 'lib', 'appium-config-schema.js'); /** * Full path to output `.json` diff --git a/packages/schema/tsconfig.json b/packages/schema/tsconfig.json index b98673780..ef88e41e3 100644 --- a/packages/schema/tsconfig.json +++ b/packages/schema/tsconfig.json @@ -1,9 +1,10 @@ { "extends": "@appium/tsconfig/tsconfig.json", "compilerOptions": { - "rootDir": "lib", + "rootDir": ".", "outDir": "build", - "checkJs": true + "checkJs": true, + "strict": true }, - "include": ["./lib/**/*.js"] + "include": ["lib"] }