Skip to content

Commit

Permalink
Merge pull request #75 from kitsuyui/update-yarn-dev-command
Browse files Browse the repository at this point in the history
Update yarn dev command
  • Loading branch information
kitsuyui authored May 26, 2023
2 parents 85c27d8 + 134dc6a commit d04a510
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 18 deletions.
4 changes: 2 additions & 2 deletions examples/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@kitsuyui/react-clock": "file:../../packages/components",
"@kitsuyui/react-components": "file:../../packages/components",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"use-sound": "^4.0.1"
Expand All @@ -21,7 +21,7 @@
"web-vitals": "^3.0.0"
},
"scripts": {
"start": "react-scripts start",
"dev": "react-scripts start",
"build": "react-scripts build",
"test": "CI=true react-scripts test --no-watchman --collect-coverage",
"eject": "react-scripts eject"
Expand Down
3 changes: 1 addition & 2 deletions examples/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"storybook-addon-swc": "^1.2.0"
},
"scripts": {
"start": "storybook dev -p 6006",
"storybook": "storybook dev -p 6006",
"dev": "storybook dev -p 6006 --ci",
"test:vrt": "playwright test",
"build": "storybook build"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/storybook/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default defineConfig({
],
// Run your local dev server before starting the tests.
webServer: {
command: 'yarn start',
command: 'yarn dev',
url: 'http://127.0.0.1:6006',
reuseExistingServer: !process.env.CI,
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"private": true,
"license": "MIT",
"scripts": {
"start": "turbo run start --parallel",
"start": "turbo run dev --parallel",
"dev": "turbo run dev --parallel",
"build": "turbo build",
"test": "turbo test",
"lint": "turbo lint",
Expand Down
1 change: 1 addition & 0 deletions packages/clock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"scripts": {
"build": "tsup ./src/index.ts --dts",
"dev": "tsup ./src/index.ts --dts --watch",
"test": "jest --watchAll=false --collect-coverage"
},
"browserslist": {
Expand Down
1 change: 1 addition & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"scripts": {
"build": "tsup ./src/index.tsx --dts",
"dev": "tsup ./src/index.tsx --dts --watch",
"test": "jest --watchAll=false --collect-coverage"
},
"browserslist": {
Expand Down
1 change: 1 addition & 0 deletions packages/stopwatch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"scripts": {
"build": "tsup ./src/index.ts --dts",
"dev": "tsup ./src/index.ts --dts --watch",
"test": "jest --watchAll=false --collect-coverage"
},
"browserslist": {
Expand Down
1 change: 1 addition & 0 deletions packages/timer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"scripts": {
"build": "tsup ./src/index.ts --dts",
"dev": "tsup ./src/index.ts --dts --watch",
"test": "jest --watchAll=false --collect-coverage"
},
"browserslist": {
Expand Down
4 changes: 2 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://turborepo.org/schema.json",
"pipeline": {
"start": {
"dependsOn": ["^start"]
"dev": {
"dependsOn": ["^dev"]
},
"@kitsuyui/react-clock#build": {
"outputs": ["packages/react-clock/dist/**"]
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1766,16 +1766,6 @@
react-dom "^18.2.0"
react-use "^17.4.0"

"@kitsuyui/react-clock@file:packages/components":
version "0.0.0"
dependencies:
"@kitsuyui/react-clock" latest
"@kitsuyui/react-stopwatch" latest
"@kitsuyui/react-timer" latest
react "^18.2.0"
react-dom "^18.2.0"
react-use "^17.4.0"

"@kitsuyui/react-clock@latest":
version "0.0.9"
resolved "https://registry.yarnpkg.com/@kitsuyui/react-clock/-/react-clock-0.0.9.tgz#258761491cae557970aded9b1214d22fa9c6940a"
Expand All @@ -1786,6 +1776,16 @@
react-dom "^18.2.0"
react-use "^17.4.0"

"@kitsuyui/react-components@file:packages/components":
version "0.0.0"
dependencies:
"@kitsuyui/react-clock" latest
"@kitsuyui/react-stopwatch" latest
"@kitsuyui/react-timer" latest
react "^18.2.0"
react-dom "^18.2.0"
react-use "^17.4.0"

"@kitsuyui/react-stopwatch@file:packages/stopwatch":
version "0.0.0"
dependencies:
Expand Down

0 comments on commit d04a510

Please sign in to comment.