Remove Bun, use pnpm

This commit is contained in:
Araozu 2024-04-23 10:34:00 -05:00
parent 42b724966d
commit 5a94bc5dd3
8 changed files with 5695 additions and 9 deletions

View File

@ -1,17 +1,22 @@
pipeline {
agent any
environment {
PATH = "/var/lib/jenkins/.bun/bin/:/var/lib/jenkins/bin:/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:${env.PATH}"
PATH = "/var/lib/jenkins/bin:/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:${env.PATH}"
}
stages {
stage('Install deps') {
steps {
sh 'bun i'
sh 'pnpm i'
}
}
stage("Test") {
steps {
sh 'pnpm test'
}
}
stage('Build bundle') {
steps {
sh 'bun run build'
sh 'pnpm build'
}
}
stage('Deploy') {

BIN
bun.lockb

Binary file not shown.

View File

@ -6,6 +6,7 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"test": "vitest run",
"preview": "astro preview",
"astro": "astro"
},
@ -13,10 +14,10 @@
"@astrojs/check": "^0.5.10",
"@astrojs/mdx": "^2.3.0",
"@astrojs/tailwind": "^5.1.0",
"@types/bun": "^1.0.12",
"astro": "^4.6.1",
"codejar": "^4.2.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"vitest": "^1.5.0"
}
}

5680
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { expect, test, describe } from "bun:test";
import { expect, test, describe } from "vitest";
import { scan_identifier } from "./identifier_lexer";

View File

@ -1,4 +1,4 @@
import { expect, test, describe } from "bun:test";
import { expect, test, describe } from "vitest";
import { lex } from "./lexer";
describe("Lexer", () => {

View File

@ -1,4 +1,4 @@
import { expect, test, describe } from "bun:test";
import { expect, test, describe } from "vitest";
import { scan_number } from "./number_lexer";
describe("Number Lexer", () => {

View File

@ -1,4 +1,4 @@
import { expect, test, describe } from "bun:test";
import { expect, test, describe } from "vitest";
import { scan_string } from "./string_lexer";
describe("String Lexer", () => {