Compare commits

..

No commits in common. "ef6dea3605b7a5140255a9d3b80fdd1e8d0b25f8" and "cf414a69b315e17fd4bf5743cfb58c48a5800a3a" have entirely different histories.

4 changed files with 7 additions and 19 deletions

View File

@ -1,7 +1,5 @@
import esbuild from 'esbuild' const esbuild = require('esbuild')
import pkg from './package.json' assert { type: 'json' } const { version } = require('./package.json')
const { version } = pkg
esbuild.build({ esbuild.build({
entryPoints: ['src/index.js'], entryPoints: ['src/index.js'],

File diff suppressed because one or more lines are too long

View File

@ -221,11 +221,8 @@ function drawTbody(year, month) {
: tmp.weekend : tmp.weekend
? chalk.redBright(tmp.lunar) ? chalk.redBright(tmp.lunar)
: chalk.grey(tmp.lunar) : chalk.grey(tmp.lunar)
//
tr += ' '.repeat(pad + 2) + tmp.lunar + ' '.repeat(pad + 2) + VLINE
} else {
tr += ' '.repeat(pad * 2) + VLINE
} }
tr += ' '.repeat(pad + 2) + tmp.lunar + ' '.repeat(pad + 2) + VLINE
} }
break break
} }

View File

@ -11,10 +11,10 @@ import chalk from 'chalk'
import { CACHE_FILE } from './lunar/config.js' import { CACHE_FILE } from './lunar/config.js'
import { getThisYearMonth, drawCalendar } from './calendar.js' import { getThisYearMonth, drawCalendar } from './calendar.js'
const version = process.env.APP_VERSION var version = process.env.APP_VERSION
const argvs = process.argv.slice(2) var argvs = process.argv.slice(2)
let action = argvs.shift() var action = argvs.shift()
let [year, month] = getThisYearMonth() var [year, month] = getThisYearMonth()
function drawOneYear(y) { function drawOneYear(y) {
for (let i = 0; i < 12; i++) { for (let i = 0; i < 12; i++) {