From f23b97c1a08637441fe45cd757cca60ef7bc170c Mon Sep 17 00:00:00 2001 From: Mostafa Shamsitabar <50550858+mimshins@users.noreply.github.com> Date: Wed, 27 Mar 2024 02:55:28 +0330 Subject: [PATCH] =?UTF-8?q?[=F0=9F=9A=91=EF=B8=8F][Scripts]:=20Fix=20`publ?= =?UTF-8?q?ish-script.ts`=20by=20adding=20path=20to=20the=20package=20to?= =?UTF-8?q?=20publish=20(#6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update version * Add path to the package to publish --- package.json | 2 +- scripts/ci/publish-package.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a57c376..ca4c010 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-design-tokens", - "version": "2.0.0-canary.2", + "version": "2.0.0-canary.3", "description": "An optimized and creative theming solution that generates CSS variables based on the tokens provided.", "license": "MIT", "type": "module", diff --git a/scripts/ci/publish-package.ts b/scripts/ci/publish-package.ts index cbfbdac..6c26ac6 100644 --- a/scripts/ci/publish-package.ts +++ b/scripts/ci/publish-package.ts @@ -20,7 +20,7 @@ void (async () => { const { tag = "latest" } = (packageJSON.publishConfig as { tag: string } | undefined) ?? {}; - const { stderr, stdout } = await execCmd(`npm publish --tag ${tag}`); + const { stderr, stdout } = await execCmd(`npm publish ./dist/ --tag ${tag}`); console.log({ stdout }); console.error({ stderr });