yeun / open-color

Color scheme for UI design.
https://yeun.github.io/open-color/
MIT License
5.29k stars 242 forks source link

npm prepublish is deprecated #94

Closed yeun closed 5 years ago

yeun commented 5 years ago
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
OctoD commented 5 years ago

You should use the prepublishOnly command.

"prepublish": "npm run compile-templates"

to

"prepublishOnly": "npm run compile-templates"

Is it executed only when packing or publishing a module.