mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
add dimension mismatch detection and version injection to memory plugin
This commit is contained in:
1 parent
be871aa5b2
commit
d681ee5c29
7 files changed
+111
-17
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { readFileSync, writeFileSync } from 'fs'
|
||||
import { join } from 'path'
|
||||
|
||||
const packageJsonPath = join(__dirname, '..', 'package.json')
|
||||
const versionPath = join(__dirname, '..', 'src', 'version.ts')
|
||||
|
||||
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'))
|
||||
const version = packageJson.version as string
|
||||
|
||||
const versionContent = `export const VERSION = '${version}'\n`
|
||||
|
||||
writeFileSync(versionPath, versionContent, 'utf-8')
|
||||
|
||||
console.log(`Version ${version} written to src/version.ts`)
|
||||
Reference in new issue
Block a user