From 5094ccb3b4b74afea779acefe8c337d397cf3f74 Mon Sep 17 00:00:00 2001 From: Chukwuemeka Ajima Date: Sat, 16 Jul 2022 06:46:34 +0200 Subject: [PATCH] fix(github-actions): fix github actions to run bun commands --- .github/workflows/publish.yml | 3 ++- README.md | 8 ++++---- package.json | 18 +++++++----------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb7baf5..d931626 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,7 @@ jobs: node-version: 12 registry-url: https://registry.npmjs.org + # install bun binaries - name: install bun shell: bash run: curl https://bun.sh/install | bash @@ -27,7 +28,7 @@ jobs: - name: install dependencies run: /home/runner/.bun/bin/bun install - name: build package - run: /home/runner/.bun/bin/bun run build + run: /home/runner/.bun/bin/bun run build # - name: run test suites # run: npm test diff --git a/README.md b/README.md index 9598337..0880511 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Fast, lightweight and zero dependency framework for [bunjs](https://bun.sh) 🚀 - [Background](#background) - [Prerequisite](#prerequisite) -- [Install](#install) +- [Install](#installation) - [Usage](#usage) - [Examples](#examples) - [Hellow Bun](#hello-bun) @@ -26,7 +26,7 @@ Fast, lightweight and zero dependency framework for [bunjs](https://bun.sh) 🚀 - [Contribute](#contribute) - [License](#license) - [Author](#author) -- [Note](#note) +- [Note](#note:) ## Background @@ -327,5 +327,5 @@ See the TODO doc [here](todo.md), feel free to also add to the list by editing t ## Author Coded with 💙 by [Chukwuemeka Ajima](https://github.com/ajimae) -## Note -Although this version is fairly stable, it is actively still under development so also is [bunjs](https://bun.sh) and might contain some bugs. Hence, not recommended to be used in a production environment yet. +## Note: +Although this version is fairly stable, it is actively still under development so also is [bunjs](https://bun.sh) and might contain some bugs, hence, not ideal for a production app. diff --git a/package.json b/package.json index 080d9a0..937fa85 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,13 @@ { "name": "colstonjs", "version": "0.1.0", + "author": "Chukwuemeka Ajima ", + "repository": "https://github.com/ajimae/colstonjs.git", + "main": "dist/index.js", "dependencies": { "bun-types": "^0.1.4" }, + "description": "fast, lightweight and zero dependency framework for bunjs", "files": [ "dist/*", "package.json", @@ -23,18 +27,10 @@ "server", "framework" ], - "description": "fast, lightweight and zero dependency framework for bunjs", - "main": "dist/index.js", - "repository": "https://github.com/ajimae/colstonjs.git", - "author": "Chukwuemeka Ajima ", "license": "MIT", "private": false, - "devDependencies": { - "@types/node": "^18.0.3" - }, "scripts": { - "build": "rm -rf dist/ && tsc", - "postbuild": "chmod +x clean-dist && sh ./clean-dist", - "clean": "rsync -r -q -i --remove-source-files --include './dist/src/*.d.ts' --exclude '*.js' --prune-empty-dirs --delete-after dist/src dist/declarations/" + "build": "rm -rf dist && tsc", + "postbuild": "chmod +x clean-dist && sh ./clean-dist" } -} +} \ No newline at end of file