@lukoweb/apitogo 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/cli/cli.js +12 -5
  2. package/package.json +2 -2
package/dist/cli/cli.js CHANGED
@@ -3816,7 +3816,7 @@ import {
3816
3816
  // package.json
3817
3817
  var package_default = {
3818
3818
  name: "@lukoweb/apitogo",
3819
- version: "0.1.2",
3819
+ version: "0.1.3",
3820
3820
  type: "module",
3821
3821
  sideEffects: [
3822
3822
  "**/*.css",
@@ -3890,7 +3890,6 @@ var package_default = {
3890
3890
  "generate:types": "tsx scripts/generate-types.js && tsx scripts/generate-flat-config.js",
3891
3891
  "build:standalone": "vite build --mode standalone --config vite.standalone.config.ts --log-level=error",
3892
3892
  prepublishOnly: "tsx scripts/generate-publish-exports.ts",
3893
- postpublish: "git checkout -- package.json",
3894
3893
  clean: "rm -rf dist",
3895
3894
  codegen: "graphql-codegen --config ./src/codegen.ts"
3896
3895
  },
@@ -4001,9 +4000,9 @@ var package_default = {
4001
4000
  shiki: "3.23.0",
4002
4001
  sitemap: "9.0.1",
4003
4002
  "strip-ansi": "7.2.0",
4003
+ tar: "7.5.10",
4004
4004
  "tailwind-merge": "3.5.0",
4005
4005
  tailwindcss: "4.2.1",
4006
- tar: "7.5.10",
4007
4006
  "tw-animate-css": "1.4.0",
4008
4007
  unified: "11.0.5",
4009
4008
  "unist-util-visit": "5.1.0",
@@ -8731,7 +8730,11 @@ var createDeploymentArchive = async (dir) => {
8731
8730
  async function deploy(argv) {
8732
8731
  await build({ ...argv, preview: void 0 });
8733
8732
  const dir = path28.resolve(process.cwd(), argv.dir);
8733
+ const deploymentToken = argv.deploymentToken?.trim();
8734
8734
  try {
8735
+ if (!deploymentToken) {
8736
+ throw new Error("A deployment token is required.");
8737
+ }
8735
8738
  printDiagnosticsToConsole("Creating deployment archive...");
8736
8739
  const archivePath = await createDeploymentArchive(dir);
8737
8740
  printDiagnosticsToConsole(`Uploading ${path28.basename(archivePath)}...`);
@@ -8742,6 +8745,7 @@ async function deploy(argv) {
8742
8745
  new Blob([archiveBuffer], { type: "application/gzip" }),
8743
8746
  path28.basename(archivePath)
8744
8747
  );
8748
+ formData.append("deploymentToken", deploymentToken);
8745
8749
  const response = await fetch(DEPLOY_ENDPOINT, {
8746
8750
  method: "POST",
8747
8751
  body: formData
@@ -8766,8 +8770,11 @@ async function deploy(argv) {
8766
8770
  // src/cli/cmds/deploy.ts
8767
8771
  var deploy_default = {
8768
8772
  desc: "Build, archive, and deploy",
8769
- command: "deploy",
8770
- builder: (yargs2) => yargs2.option("dir", {
8773
+ command: "deploy [deploymentToken]",
8774
+ builder: (yargs2) => yargs2.positional("deploymentToken", {
8775
+ type: "string",
8776
+ describe: "Deployment token sent to the deploy endpoint"
8777
+ }).option("dir", {
8771
8778
  type: "string",
8772
8779
  describe: "The directory containing your project",
8773
8780
  default: ".",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/apitogo",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "**/*.css",
@@ -252,9 +252,9 @@
252
252
  "shiki": "3.23.0",
253
253
  "sitemap": "9.0.1",
254
254
  "strip-ansi": "7.2.0",
255
+ "tar": "7.5.10",
255
256
  "tailwind-merge": "3.5.0",
256
257
  "tailwindcss": "4.2.1",
257
- "tar": "7.5.10",
258
258
  "tw-animate-css": "1.4.0",
259
259
  "unified": "11.0.5",
260
260
  "unist-util-visit": "5.1.0",