Sorry, all this is new to me so I'm not sure the best way to fix. I think it things /tests should bee in the /src directory. Seems like tests should be "../tests/" in the include line. I'll fix.
error TS6059: File '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/tests/RyobiGDOApi.test.ts' is not under 'rootDir' '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/src'. 'rootDir' is expected to contain all source files.
The file is in the program because:
Matched by include pattern 'tests/' in '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/tsconfig.json'
File is matched by include pattern specified here.
error TS6059: File '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/tests/integration.ts' is not under 'rootDir' '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/src'. 'rootDir' is expected to contain all source files.
The file is in the program because:
Matched by include pattern 'tests/' in '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/tsconfig.json'
tsconfig.json:16:23
16 "include": ["src/", "tests/"],
File is matched by include pattern specified here.
Found 2 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! homebridge-garagedoor-ryobi@0.3.3 build: rimraf ./dist && tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the homebridge-garagedoor-ryobi@0.3.3 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/russ/.npm/_logs/2021-04-25T19_17_07_230Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! homebridge-garagedoor-ryobi@0.3.3 prepublishOnly: npm run lint && npm run build
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the homebridge-garagedoor-ryobi@0.3.3 prepublishOnly script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/russ/.npm/_logs/2021-04-25T19_17_07_272Z-debug.log
Sorry, all this is new to me so I'm not sure the best way to fix. I think it things /tests should bee in the /src directory. Seems like tests should be "../tests/" in the include line. I'll fix.
russ@russ-air homebridge-garagedoor-ryobi % npm publish
error TS6059: File '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/tests/RyobiGDOApi.test.ts' is not under 'rootDir' '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/src'. 'rootDir' is expected to contain all source files. The file is in the program because: Matched by include pattern 'tests/' in '/Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi/tsconfig.json'
tsconfig.json:16:23 16 "include": ["src/", "tests/"],
Found 2 errors.
npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! homebridge-garagedoor-ryobi@0.3.3 build:
rimraf ./dist && tsc
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the homebridge-garagedoor-ryobi@0.3.3 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /Users/russ/.npm/_logs/2021-04-25T19_17_07_230Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! homebridge-garagedoor-ryobi@0.3.3 prepublishOnly:
npm run lint && npm run build
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the homebridge-garagedoor-ryobi@0.3.3 prepublishOnly script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /Users/russ/.npm/_logs/2021-04-25T19_17_07_272Z-debug.log