Skip to content

Commit

Permalink
chore: switch to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Oct 4, 2024
1 parent b9d6e7c commit f95cdb8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ dist/
.hotreload
act.json
tokens.json
logs.txt
logs.txt
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tag-version-prefix=""
auto-install-peers=true
enable-pre-post-scripts=true

Binary file modified bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import dotenv from "dotenv";
import esbuild from "esbuild";
import * as fs from "fs";
import * as path from "path";
import process from "process";
import packageJson from "./package.json" with { type: "json" };
import manifest from "./manifest.json" with { type: "json" };

Expand All @@ -29,7 +28,7 @@ function cleanOutDir(outdir) {
* @prop {boolean|undefined} beta
*/

dotenv.config();
dotenv.config({path: [".env"]});

const program = new Command();
program
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@
"description": "Github Publisher is a plugin that help you to send file in a configured Github Repository, based on a frontmatter entry state.",
"main": "main.js",
"private": true,
"config": {
"port": "1337"
},
"scripts": {
"lint": "biome format --write src/",
"prebuild": "tsc --noEmit --skipLibCheck",
"build": "node esbuild.config.mjs --production",
"dev:prod": "node esbuild.config.mjs --vault",
"dev": "node esbuild.config.mjs",
"export": "node esbuild.config.mjs --production --vault",
"prerelease": "dotenv cross-var %ENGINE% run prebuild",
"prerelease": "bun run prebuild",
"release": "node commit-and-tag-version.mjs",
"postrelease": "git push --follow-tags origin master",
"predeploy": "dotenv cross-var %ENGINE% run bump",
"deploy": "dotenv cross-var %ENGINE% run export"
"predeploy": "bun run bump",
"deploy": "bun run export"
},
"commit-and-tag-version": {
"t": ""
Expand Down

0 comments on commit f95cdb8

Please sign in to comment.