Files
qqq-cli/scripts/copy-license.mjs
T
james.maesandClaude Fable 5.1 0588e902fe release: 1.0.0-rc.1 metadata for the CLI, core and client packages
CLI and core go to 1.0.0-rc.1 and the client to 1.8.0-rc.2, with the
workspace dependencies pinned to them. Every published package now has
repository, homepage, bugs, engines (Node 20+), publishConfig, explicit
exports and a files list that leaves out compiled tests and source
maps. The repository LICENSE is copied in on prepack because npm only
packs a LICENSE from the package root. core had no publishConfig, so a
publish would have gone to the public registry; it now targets GitHub
Packages like the others. The CLI and client packages get the README
their files lists already named.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 18:28:04 -05:00

18 lines
569 B
JavaScript

/*
* Copyright 2026 QRun.IO, Inc.
* Licensed under the Apache License, Version 2.0 (see LICENSE).
*/
/**
* prepack hook of each published package: copies the repository's LICENSE into the package
* directory so npm packs it (npm only picks up a LICENSE from the package root). The copies are
* git-ignored.
*
* Usage (from a package directory): node ../../scripts/copy-license.mjs
*/
import { copyFileSync } from 'node:fs'
import { join, resolve } from 'node:path'
copyFileSync(resolve(import.meta.dirname, '..', 'LICENSE'), join(process.cwd(), 'LICENSE'))