Skip to content

Commit 066374f

Browse files
committed
Rename package.json scripts for clarity
1 parent 3575728 commit 066374f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/react-components/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,18 @@ Components live in `./src/components` and are targeted by the build process with
7474

7575
Storybook stories live in `./src/stories`.
7676

77-
Run `npm run storybook` to access the Storybook instance for the component library.
77+
Run `npm run storybook-dev` to access the Storybook instance for the component library.
7878

7979
### Vite kitchen sink application
8080

8181
Vite uses the components code directly from `./src/components` in groups of content in `./src/pages`.
8282

83-
Run `npm run vite` to access the Vite React demo app.
83+
Run `npm run vite-dev` to access the Vite React demo app.
8484

8585
### Publish new versions
8686

8787
To generate an updated copy of the package for distribution, run the included Rollup script: `npm run rollup`.
8888

8989
This will place artifacts in the `dist` folder, which is targeted for publishing in `package.json` with the [`files` field](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files).
9090

91-
Update the package version in `package.json` and run `npm run publish` to push a new version.
91+
Update the package version in `package.json` and run `npm publish` to push a new version.

packages/react-components/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "0.0.2",
44
"type": "module",
55
"scripts": {
6-
"vite": "vite",
7-
"build-vite": "tsc && vite build",
6+
"rollup": "rollup -c --bundleConfigAsCjs",
87
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
9-
"preview": "vite preview",
10-
"storybook": "storybook dev -p 6006",
11-
"build-storybook": "storybook build",
12-
"rollup": "rollup -c --bundleConfigAsCjs"
8+
"storybook-dev": "storybook dev -p 6006",
9+
"storybook-build": "storybook build",
10+
"vite-dev": "vite",
11+
"vite-build": "tsc && vite build",
12+
"vite-preview": "vite preview"
1313
},
1414
"main": "dist/cjs/index.cjs",
1515
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)