Skip to content

Commit

Permalink
chore: rename workflow to clarify QuickJS publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
rycont committed Nov 10, 2024
1 parent a543c4d commit 1500b98
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-quickjs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Publish - QuickJS
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
},
"name": "@yaksok-ts/core",
"version": "0.1.13",
"version": "0.1.14",
"exports": "./src/mod.ts",
"nodeModulesDir": "auto",
"workspace": [
Expand Down
2 changes: 1 addition & 1 deletion quickjs/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"quickjs-emscripten": "npm:quickjs-emscripten@^0.31.0",
"quickjs-emscripten-core": "npm:quickjs-emscripten-core@^0.31.0"
},
"version": "0.1.0"
"version": "0.1.1"
}
6 changes: 3 additions & 3 deletions quickjs/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
StringValue,
type PrimitiveTypes,
type ValueTypes,
} from '../src/node/index.ts'
import { bold, dim } from '../src/error/common.ts'
import type { FunctionParams } from '../src/constant/type.ts'
type FunctionParams,
} from '@yaksok-ts/core'
import { bold, dim } from './util.ts'

export class QuickJS {
instance: QuickJSWASMModule | null = null
Expand Down
11 changes: 11 additions & 0 deletions quickjs/util.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export function bold(text: string | number) {
return `\x1b[1m${text}\x1b[0m`
}

export function blue(text: string | number) {
return `\x1b[34m${text}\x1b[0m`
}

export function dim(text: string | number) {
return `\x1b[2m${text}\x1b[0m`
}

0 comments on commit 1500b98

Please sign in to comment.