Skip to content

How to remap script for specific package? dev -> start #1427

Closed Answered by tknickman
iamyoki asked this question in Help
Discussion options

You must be logged in to vote

This isn't supported at the moment.

I would suggest either renaming start to dev in your root/cra-app/package.json:

  "scripts": {
-   "start": "react-scripts start",
+   "dev": "react-scripts start", 
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

Or, if you still need a start script, you can add a second dev script that calls the same thing as start (or start directly if that makes more sense for your setup):

  "scripts": {
    "start": "react-scripts start",
+   "dev": "react-scripts start", 
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anthonyshew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants