zeplin / storybook-zeplin

Storybook addon to view Zeplin resources in story panel
https://storybook-zeplin.netlify.app
MIT License
116 stars 16 forks source link

Fix prepare command #35

Closed skarahoda closed 2 years ago

skarahoda commented 2 years ago

While using the git URL as a npm dependency, we had two issues:

  1. tsc version is outdated and it produces the following error:

npm ERR! > storybook-zeplin@1.5.2-rc.0 prepublish npm ERR! > tsc npm ERR! npm ERR! error TS6047: Argument for '--target' option must be 'ES3', 'ES5', or 'ES6'. npm ERR! error TS6046: Argument for '--module' option must be 'commonjs', 'amd', 'system' or 'umd'. npm ERR! error TS5023: Unknown compiler option 'moduleResolution'. npm ERR! error TS5023: Unknown compiler option 'strict'. npm ERR! error TS5023: Unknown compiler option 'jsx'. npm ERR! error TS5023: Unknown compiler option 'forceConsistentCasingInFileNames'. npm ERR! error TS5023: Unknown compiler option 'esModuleInterop'. npm ERR! error TS5023: Unknown compiler option 'allowSyntheticDefaultImports'. npm ERR! error TS5023: Unknown compiler option 'types'. npm ERR! error TS5023: Unknown compiler option 'skipLibCheck'. npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! npm ERR! code 1 npm ERR! npm ERR! path /Users/sertac/.npm/_cacache/tmp/git-clone-a7a54df5 npm ERR! npm ERR! command failed npm ERR! npm ERR! command sh -c tsc

  1. prepublish command is deprecated. Deprecation documentation