@tscircuit/cli 0.1.2296 → 0.1.2297
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/cli/main.js +5 -6
- package/dist/lib/index.js +3 -4
- package/package.json +1 -1
package/dist/cli/main.js
CHANGED
|
@@ -176009,7 +176009,7 @@ var import_perfect_cli = __toESM3(require_dist3(), 1);
|
|
|
176009
176009
|
// lib/getVersion.ts
|
|
176010
176010
|
import { createRequire as createRequire2 } from "node:module";
|
|
176011
176011
|
// package.json
|
|
176012
|
-
var version = "0.1.
|
|
176012
|
+
var version = "0.1.2296";
|
|
176013
176013
|
var package_default = {
|
|
176014
176014
|
name: "@tscircuit/cli",
|
|
176015
176015
|
version,
|
|
@@ -361811,7 +361811,7 @@ var pushSnippet = async ({
|
|
|
361811
361811
|
isPrivate,
|
|
361812
361812
|
versionTag,
|
|
361813
361813
|
includeDist = false,
|
|
361814
|
-
compress =
|
|
361814
|
+
compress = true,
|
|
361815
361815
|
log = console.log,
|
|
361816
361816
|
onExit = (code) => process.exit(code),
|
|
361817
361817
|
onError = (message) => console.error(message),
|
|
@@ -362014,8 +362014,7 @@ var pushSnippet = async ({
|
|
|
362014
362014
|
const filePaths = getPackageFilePaths(projectDir, includeDist ? [] : ["**/dist/**"]);
|
|
362015
362015
|
const uploadResults = { succeeded: [], failed: [] };
|
|
362016
362016
|
const packageNameWithVersion = `${scopedPackageName}@${releaseVersion}`;
|
|
362017
|
-
|
|
362018
|
-
if (shouldUploadArchive) {
|
|
362017
|
+
if (compress) {
|
|
362019
362018
|
log(kleur_default.gray("Uploading package archive..."));
|
|
362020
362019
|
try {
|
|
362021
362020
|
const archivePayload = getArchivePayload(filePaths, projectDir, packageNameWithVersion);
|
|
@@ -404065,13 +404064,13 @@ var registerInstall = (program) => {
|
|
|
404065
404064
|
|
|
404066
404065
|
// cli/push/register.ts
|
|
404067
404066
|
var registerPush = (program) => {
|
|
404068
|
-
program.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").option("--compress", "Compress project files into a single archive upload for faster pushes").action(async (filePath, options = {}) => {
|
|
404067
|
+
program.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").option("--compress", "Compress project files into a single archive upload for faster pushes (default)").option("--no-compress", "Upload project files individually without compression").action(async (filePath, options = {}) => {
|
|
404069
404068
|
await pushSnippet({
|
|
404070
404069
|
filePath,
|
|
404071
404070
|
isPrivate: options.private ?? false,
|
|
404072
404071
|
versionTag: options.versionTag,
|
|
404073
404072
|
includeDist: options.includeDist ?? false,
|
|
404074
|
-
compress: options.compress ??
|
|
404073
|
+
compress: options.compress ?? true,
|
|
404075
404074
|
onExit: (code) => process.exit(code),
|
|
404076
404075
|
onError: (message) => console.error(message),
|
|
404077
404076
|
onSuccess: (message) => console.log(message)
|
package/dist/lib/index.js
CHANGED
|
@@ -69121,7 +69121,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
69121
69121
|
}));
|
|
69122
69122
|
};
|
|
69123
69123
|
// package.json
|
|
69124
|
-
var version = "0.1.
|
|
69124
|
+
var version = "0.1.2296";
|
|
69125
69125
|
var package_default = {
|
|
69126
69126
|
name: "@tscircuit/cli",
|
|
69127
69127
|
version,
|
|
@@ -84574,7 +84574,7 @@ var pushSnippet = async ({
|
|
|
84574
84574
|
isPrivate,
|
|
84575
84575
|
versionTag,
|
|
84576
84576
|
includeDist = false,
|
|
84577
|
-
compress =
|
|
84577
|
+
compress = true,
|
|
84578
84578
|
log = console.log,
|
|
84579
84579
|
onExit = (code) => process.exit(code),
|
|
84580
84580
|
onError = (message) => console.error(message),
|
|
@@ -84777,8 +84777,7 @@ var pushSnippet = async ({
|
|
|
84777
84777
|
const filePaths = getPackageFilePaths(projectDir, includeDist ? [] : ["**/dist/**"]);
|
|
84778
84778
|
const uploadResults = { succeeded: [], failed: [] };
|
|
84779
84779
|
const packageNameWithVersion = `${scopedPackageName}@${releaseVersion}`;
|
|
84780
|
-
|
|
84781
|
-
if (shouldUploadArchive) {
|
|
84780
|
+
if (compress) {
|
|
84782
84781
|
log(kleur_default.gray("Uploading package archive..."));
|
|
84783
84782
|
try {
|
|
84784
84783
|
const archivePayload = getArchivePayload(filePaths, projectDir, packageNameWithVersion);
|