Skip to content

Commit

Permalink
fix: release version
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 5, 2021
1 parent ee21198 commit 137d2bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/release.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import { readFileSync, writeFileSync } from 'fs'
import { join } from 'path'
import { objectMap } from '@antfu/utils'
import { version } from '../package.json'
import { run, runArgs } from './run'

run('npx bumpp package.json packages/*/package.json')
Expand All @@ -11,6 +11,8 @@ const templates = [
'packages/create-theme/template',
]

const { version } = require('../package.json')

for (const template of templates) {
const path = join(template, 'package.json')
const pkg = JSON.parse(readFileSync(path, 'utf-8'))
Expand Down

0 comments on commit 137d2bc

Please sign in to comment.