tldraw/scripts/publish-manual.ts

12 lines
457 B
TypeScript
Raw Normal View History

2023-04-25 11:01:25 +00:00
import { pathToFileURL } from 'url'
import { publish } from './lib/publishing'
if (import.meta.url === pathToFileURL(process.argv[1]).href) {
// This expects the package.json files to be in the correct state.
// You might want to run this locally after a failed publish attempt on CI.
// Or if you need to hotfix a package it might be desirable to run this.
// Generate a npm automation token and run this with the NPM_TOKEN env var set.
publish()
}