diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0ace784..63231c1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,9 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - cache: yarn - - run: yarn --immutable - - run: yarn lint + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun run lint diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e195aac..32bb6e7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,12 +11,8 @@ jobs: environment: npm steps: - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - cache: yarn - - run: yarn --immutable - - run: yarn npm publish --access public + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun publish --access public env: - YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - YARN_NPM_PUBLISH_REGISTRY: 'https://registry.npmjs.org' + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index 4327049..19439bf 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,12 @@ via `pnpm` : pnpm add -D telegram-webapps ``` +via `bun` : + +```bash +bun add -d telegram-webapps +``` + ### Use typings Include the types file inside your [ `tsconfig.json` ](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) file like this: diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..05b2362 --- /dev/null +++ b/bun.lock @@ -0,0 +1,18 @@ +{ + "lockfileVersion": 1, + "configVersion": 1, + "workspaces": { + "": { + "name": "telegram-webapps", + "devDependencies": { + "prettier": "^3.5.3", + "typescript": "^5.8.2", + }, + }, + }, + "packages": { + "prettier": ["prettier@3.8.3", "", { "bin": "bin/prettier.cjs" }, "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw=="], + + "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], + } +} diff --git a/package.json b/package.json index 2aac5e7..170725e 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "format": "prettier -w src" }, "devDependencies": { - "prettier": "^3.5.3", - "typescript": "^5.8.2" + "prettier": "^3.8.3", + "typescript": "^5.9.3" } } diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index 529a3d2..0000000 --- a/yarn.lock +++ /dev/null @@ -1,44 +0,0 @@ -# This file is generated by running "yarn install" inside your project. -# Manual changes might be lost - proceed with caution! - -__metadata: - version: 8 - cacheKey: 10c0 - -"prettier@npm:^3.5.3": - version: 3.5.3 - resolution: "prettier@npm:3.5.3" - bin: - prettier: bin/prettier.cjs - checksum: 10c0/3880cb90b9dc0635819ab52ff571518c35bd7f15a6e80a2054c05dbc8a3aa6e74f135519e91197de63705bcb38388ded7e7230e2178432a1468005406238b877 - languageName: node - linkType: hard - -"telegram-webapps@workspace:.": - version: 0.0.0-use.local - resolution: "telegram-webapps@workspace:." - dependencies: - prettier: "npm:^3.5.3" - typescript: "npm:^5.8.2" - languageName: unknown - linkType: soft - -"typescript@npm:^5.8.2": - version: 5.8.2 - resolution: "typescript@npm:5.8.2" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/5c4f6fbf1c6389b6928fe7b8fcd5dc73bb2d58cd4e3883f1d774ed5bd83b151cbac6b7ecf11723de56d4676daeba8713894b1e9af56174f2f9780ae7848ec3c6 - languageName: node - linkType: hard - -"typescript@patch:typescript@npm%3A^5.8.2#optional!builtin": - version: 5.8.2 - resolution: "typescript@patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/5448a08e595cc558ab321e49d4cac64fb43d1fa106584f6ff9a8d8e592111b373a995a1d5c7f3046211c8a37201eb6d0f1566f15cdb7a62a5e3be01d087848e2 - languageName: node - linkType: hard