knuckleheadsmiff / homebridge-garagedoor-ryobi

Homebridge plugin for Ryobi GDO (Garage Door Opener)
4 stars 4 forks source link

Error trying to publish on Npmjs #20

Closed knuckleheadsmiff closed 3 years ago

knuckleheadsmiff commented 3 years ago

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

homebridge-garagedoor-ryobi@0.3.3 prepublishOnly . npm run lint && npm run build

homebridge-garagedoor-ryobi@0.3.3 lint /Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi eslint src/**.ts --max-warnings=0

homebridge-garagedoor-ryobi@0.3.3 build /Users/russ/Documents/GitHub/homebridge-garagedoor-ryobi rimraf ./dist && tsc

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/"],

    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

knuckleheadsmiff commented 3 years ago

fixed