Skip to content

Commit

Permalink
changeset change on new framer
Browse files Browse the repository at this point in the history
  • Loading branch information
remorses committed Mar 20, 2024
1 parent 083e100 commit 5ef34e0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions unframer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"dependencies": {
"chokidar": "^3.5.3",
"dedent": "^1.5.1",
"dprint-node": "^1.0.8",
"esbuild": "^0.20.2",
"esbuild-plugin-polyfill-node": "^0.3.0",
Expand Down
16 changes: 15 additions & 1 deletion unframer/scripts/download.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import dprint from 'dprint-node'
import dedent from 'dedent'
import { shell } from '@xmorse/deployment-utils/src'

import fs from 'fs'
Expand Down Expand Up @@ -82,7 +83,20 @@ export async function main({ framerTypesUrl }) {
// if the file changed, call changeset
if (prevFile !== code) {
logger.log('new framer version found, versioning...')
await shell(`pnpm changeset version`)
const change = dedent`
---
unframer: patch
---
Update framer to ${framerVersion}, update framer motion to ${framerMotionVersion}
`
fs.writeFileSync(
`.changeset/${framerVersion}-${framerMotionVersion}.md`,
change,
'utf-8',
)
// increase package.json version with a patch, with pnpm
await shell('pnpm version patch')

// await changeset()
}
}
Expand Down

0 comments on commit 5ef34e0

Please sign in to comment.