Last active
February 15, 2023 06:28
-
-
Save k1-c/736d969dc73b1197897e668863f86e9a to your computer and use it in GitHub Desktop.
[node] [npm] [yarn] pre / post hook example at npm script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "sample", | |
| "version": "0.1.0", | |
| "private": true, | |
| "scripts": { | |
| "schema:update": "npx openapi2aspida -i=docs/openapi.yml", | |
| "predev": "schema:update" | |
| "dev": "next dev", | |
| "prebuild": "schema:update", | |
| "build": "next build", | |
| }, | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
reference:
https://docs.npmjs.com/cli/v9/using-npm/scripts