feat(.): go back to bun

This commit is contained in:
Nan72 2025-02-14 13:11:27 +07:00
parent df2ad11cec
commit 62b6376d34
No known key found for this signature in database
5 changed files with 14 additions and 9 deletions

View File

@ -5,18 +5,23 @@ on:
jobs: jobs:
publish-npm: publish-npm:
environment: prod
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
id-token: write id-token: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup pnpm - uses: oven-sh/setup-bun@v2
uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions
with: with:
version: 9 # Optional: specify a pnpm version bun-version: latest
- run: pnpm install - uses: actions/setup-node@v4
- run: pnpm build with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: bun install
- run: bun run build
- name: Publish to NPM - name: Publish to NPM
run: npm publish --provenance --access public run: npm publish --provenance --access public
env: env:

4
.gitignore vendored
View File

@ -119,6 +119,7 @@ out
.nuxt .nuxt
dist dist
build.js
# Gatsby files # Gatsby files
@ -173,5 +174,4 @@ dist
# Finder (MacOS) folder config # Finder (MacOS) folder config
.DS_Store .DS_Store
extensions_support/ extensions_support/

BIN
bun.lockb Executable file

Binary file not shown.

View File

@ -74,7 +74,7 @@
}, },
"scripts": { "scripts": {
"dev": "bun build.ts dev", "dev": "bun build.ts dev",
"build": "tsc build.ts", "build": "bun build.ts",
"publish": "npm publish --provenance" "publish": "npm publish --provenance"
}, },
"dependencies": { "dependencies": {

View File

@ -1,5 +1,5 @@
import {expose} from "@kksh/api/headless"; import {expose} from "@kksh/api/headless";
import camelCase from "lodash/camelcase"; import camelCase from "lodash/camelCase";
import {BaseExt} from "./base"; import {BaseExt} from "./base";
class CamelCaseExt extends BaseExt { class CamelCaseExt extends BaseExt {