From 066374f36b7884565c041a8f22eb0fecdcb0504e Mon Sep 17 00:00:00 2001 From: Tyler Krys Date: Wed, 29 Nov 2023 09:09:34 -0800 Subject: [PATCH] Rename package.json scripts for clarity --- packages/react-components/README.md | 6 +++--- packages/react-components/package.json | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/react-components/README.md b/packages/react-components/README.md index e593512e..b899f5d0 100644 --- a/packages/react-components/README.md +++ b/packages/react-components/README.md @@ -74,13 +74,13 @@ Components live in `./src/components` and are targeted by the build process with Storybook stories live in `./src/stories`. -Run `npm run storybook` to access the Storybook instance for the component library. +Run `npm run storybook-dev` to access the Storybook instance for the component library. ### Vite kitchen sink application Vite uses the components code directly from `./src/components` in groups of content in `./src/pages`. -Run `npm run vite` to access the Vite React demo app. +Run `npm run vite-dev` to access the Vite React demo app. ### Publish new versions @@ -88,4 +88,4 @@ To generate an updated copy of the package for distribution, run the included Ro 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). -Update the package version in `package.json` and run `npm run publish` to push a new version. +Update the package version in `package.json` and run `npm publish` to push a new version. diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 1bdf6f2d..3673f1a0 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -3,13 +3,13 @@ "version": "0.0.2", "type": "module", "scripts": { - "vite": "vite", - "build-vite": "tsc && vite build", + "rollup": "rollup -c --bundleConfigAsCjs", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", - "preview": "vite preview", - "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build", - "rollup": "rollup -c --bundleConfigAsCjs" + "storybook-dev": "storybook dev -p 6006", + "storybook-build": "storybook build", + "vite-dev": "vite", + "vite-build": "tsc && vite build", + "vite-preview": "vite preview" }, "main": "dist/cjs/index.cjs", "module": "dist/esm/index.js",