fix(schema): move output files due to tsc's confusion

It seemed to think I wanted to overwrite the root `index.js` file, and I don't know why. It doesn't do that anymore.
This commit is contained in:
Christopher Hiller
2023-02-14 16:10:45 -08:00
parent 04633e3e6d
commit 943dce5eec
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
module.exports = require('./build/index.js');
module.exports = require('./build/lib/index.js');
+1 -1
View File
@@ -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",
@@ -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`
+4 -3
View File
@@ -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"]
}