fix setAllVersions (#3009)
follow up to #3008 ### Change Type - [ ] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [ ] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [x] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Add a step-by-step description of how to test your PR here. 2. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Add a brief release note for your PR here.
This commit is contained in:
parent
9d237eec73
commit
58feaf8eac
1 changed files with 2 additions and 11 deletions
|
@ -55,19 +55,10 @@ export async function setAllVersions(version: string) {
|
|||
path.join(packageDetails.dir, 'package.json'),
|
||||
JSON.stringify(manifest, null, '\t') + '\n'
|
||||
)
|
||||
if (manifest.name === '@tldraw/editor') {
|
||||
const versionFileContents = `export const version = '${version}'\n`
|
||||
writeFileSync(path.join(packageDetails.dir, 'src', 'version.ts'), versionFileContents)
|
||||
}
|
||||
if (manifest.name === 'tldraw') {
|
||||
const versionFileContents = `export const version = '${version}'\n`
|
||||
writeFileSync(
|
||||
path.join(packageDetails.dir, 'src', 'lib', 'ui', 'version.ts'),
|
||||
versionFileContents
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
await exec('yarn', ['refresh-assets'])
|
||||
|
||||
const lernaJson = JSON.parse(readFileSync('lerna.json', 'utf8'))
|
||||
lernaJson.version = version
|
||||
writeFileSync('lerna.json', JSON.stringify(lernaJson, null, '\t') + '\n')
|
||||
|
|
Loading…
Reference in a new issue