Skip to content

Commit

Permalink
Merge pull request #9 from diecodev/fix/vite-build-error
Browse files Browse the repository at this point in the history
Fix/vite build error
  • Loading branch information
diecodev authored May 8, 2024
2 parents 0b25ccb + 50ddfaf commit 87f4da1
Show file tree
Hide file tree
Showing 27 changed files with 1,490 additions and 1,359 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
deno-version: v1.x

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
uses: pnpm/action-setup@v4

- name: Build qwik-sonner
run: "pnpm install --no-frozen-lockfile && pnpm run build"
Expand Down
27 changes: 20 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,33 @@ permissions:
on:
push:
tags:
- 'v*'
- "v*"

jobs:
release:
gh_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: actions/setup-node@v4

- run: npx changelogithub # or [email protected] if ensure the stable result
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

npm_publish:
runs-on: ubuntu-latest
steps:
- name: clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: installing pnpm
uses: pnpm/action-setup@v4

- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,26 +64,28 @@
"type": "module",
"scripts": {
"build": "qwik build",
"build.lib": "vite build --mode lib",
"build.lib": "ENTRY=styled vite build --mode lib && ENTRY=headless vite build --mode lib",
"build.types": "tsc --emitDeclarationOnly -p tsconfig.lib.json",
"dev": "vite --mode ssr",
"dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
"fmt": "prettier --write .",
"fmt.check": "prettier --check .",
"lint": "eslint \"src/**/*.ts*\"",
"release": "bumpp --commit --tag --push && pnpm publish",
"release": "bumpp --commit --tag --push",
"prepublishOnly": "pnpm build && pnpm test",
"start": "vite --open --mode ssr",
"test": "pnpm --filter=test run test",
"qwik": "qwik"
},
"devDependencies": {
"@builder.io/qwik": "1.5.3",
"@types/dompurify": "3.0.5",
"@types/eslint": "^8.56.10",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"bumpp": "9.4.0",
"dompurify": "3.1.2",
"eslint-plugin-qwik": "latest",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
Expand All @@ -92,4 +94,4 @@
"vite": "^5.2.10",
"vite-tsconfig-paths": "^4.2.1"
}
}
}
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { Toaster } from "./lib/styled/index";
export { toast } from "./lib/core/state";
export { toast } from "./lib/headless/state";
export {
type ToastT as Toast,
type ExternalToast,
type ToasterProps,
} from "./lib/core/types";
} from "./lib/headless/types";
7 changes: 0 additions & 7 deletions src/lib/core/const.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/lib/core/index.ts

This file was deleted.

Loading

0 comments on commit 87f4da1

Please sign in to comment.