Skip to content

Commit 173b9ad

Browse files
authored
Merge pull request #90 from leonardojgv/feature/for_npm_publication
Add build command
2 parents 48acfbd + cb12753 commit 173b9ad

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish Monorepo to npmjs.com
33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
6+
- "v*.*.*"
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
@@ -15,19 +15,22 @@ jobs:
1515
- uses: pnpm/action-setup@v4
1616
with:
1717
run_install: false
18-
18+
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version-file: '.nvmrc'
21+
node-version-file: ".nvmrc"
2222
cache: pnpm
2323
registry-url: "https://registry.npmjs.org/"
2424

2525
- name: Install Dependencies
2626
run: pnpm ci:install
2727

28+
- name: Run build
29+
run: pnpm build
30+
2831
- name: Check typings in All Packages
2932
run: pnpm check
30-
33+
3134
#- name: Run Tests in All Packages
3235
# run: pnpm test
3336

packages/svelte-timeseries/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"!dist/**/*.test.*"
2727
],
2828
"scripts": {
29-
"build": "vite build && npm run package",
29+
"build": "run-s vite:build package",
3030
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
3131
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
3232
"clean": "run-s vite:clean sk:clean sk:sync",
@@ -41,6 +41,7 @@
4141
"preview": "vite preview",
4242
"sk:clean": "rimraf .svelte-kit",
4343
"sk:sync": "svelte-kit sync",
44+
"vite:build": "vite build",
4445
"vite:clean": "rimraf node_modules/.vite vite.config.ts.*"
4546
},
4647
"types": "./dist/index.d.ts",

packages/sveltecharts/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"!dist/**/*.test.*"
2727
],
2828
"scripts": {
29-
"build": "vite build && npm run package",
29+
"build": "run-s vite:build package",
3030
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
3131
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
3232
"dev": "vite dev",
@@ -39,7 +39,8 @@
3939
"preview": "vite preview",
4040
"prepublishOnly": "pnpm build",
4141
"publishd": "pnpm publish --dry-run --no-git-checks",
42-
"test": "vitest"
42+
"test": "vitest",
43+
"vite:build": "vite build"
4344
},
4445
"types": "./dist/index.d.ts",
4546
"peerDependencies": {

0 commit comments

Comments
 (0)