@tscircuit/cli 0.1.725 → 0.1.726
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +4 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -78472,6 +78472,7 @@ var pushSnippet = async ({
|
|
|
78472
78472
|
filePath,
|
|
78473
78473
|
isPrivate,
|
|
78474
78474
|
versionTag,
|
|
78475
|
+
includeDist = false,
|
|
78475
78476
|
log = console.log,
|
|
78476
78477
|
onExit = (code) => process.exit(code),
|
|
78477
78478
|
onError = (message) => console.error(message),
|
|
@@ -78678,7 +78679,7 @@ var pushSnippet = async ({
|
|
|
78678
78679
|
});
|
|
78679
78680
|
log(`
|
|
78680
78681
|
`);
|
|
78681
|
-
const filePaths = getPackageFilePaths(projectDir);
|
|
78682
|
+
const filePaths = getPackageFilePaths(projectDir, includeDist ? [] : ["**/dist/**"]);
|
|
78682
78683
|
for (const fullFilePath of filePaths) {
|
|
78683
78684
|
const relativeFilePath = path15.relative(projectDir, fullFilePath);
|
|
78684
78685
|
const fileBuffer = fs13.readFileSync(fullFilePath);
|
|
@@ -84719,11 +84720,12 @@ Logged in user:
|
|
|
84719
84720
|
|
|
84720
84721
|
// cli/push/register.ts
|
|
84721
84722
|
var registerPush = (program3) => {
|
|
84722
|
-
program3.command("push").description("Save package code to Registry API").argument("[file]", "Path to the package file").option("--private", "Make the package private").option("--version-tag <tag>", "Publish as a non-latest version using the provided tag").action(async (filePath, options = {}) => {
|
|
84723
|
+
program3.command("push").description("Save package code to Registry API").argument("[file]", "Path to the package file").option("--private", "Make the package private").option("--version-tag <tag>", "Publish as a non-latest version using the provided tag").option("--include-dist", "Include the dist directory in the push").action(async (filePath, options = {}) => {
|
|
84723
84724
|
await pushSnippet({
|
|
84724
84725
|
filePath,
|
|
84725
84726
|
isPrivate: options.private ?? false,
|
|
84726
84727
|
versionTag: options.versionTag,
|
|
84728
|
+
includeDist: options.includeDist ?? false,
|
|
84727
84729
|
onExit: (code) => process.exit(code),
|
|
84728
84730
|
onError: (message) => console.error(message),
|
|
84729
84731
|
onSuccess: (message) => console.log(message)
|