Skip to content

Commit 8f2ffe1

Browse files
authored
fix(utlis): fixed the issue that the release version of the utils package could not correspond (#2837)
1 parent f5a7a29 commit 8f2ffe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/renderless/scripts/postbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { promises as fs } from 'node:fs'
44
async function run() {
55
const content = await fs.readFile(resolve('package.json'), 'utf8')
66
const packageJson = JSON.parse(content)
7-
packageJson.dependencies['@opentiny/utils'] = '^1.0.0'
7+
packageJson.dependencies['@opentiny/utils'] = `~${packageJson.version.split('.').slice(0, 2).join('.')}.0`
88
delete packageJson.exports
99
delete packageJson.private
1010
await fs.writeFile(resolve('dist', 'package.json'), JSON.stringify(packageJson, null, 2))

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opentiny/utils",
33
"type": "module",
4-
"version": "1.0.0",
4+
"version": "3.21.0",
55
"description": "nanoid console xss",
66
"author": "",
77
"license": "ISC",

0 commit comments

Comments
 (0)