From 219e990b3ed89bf712b535989e0d2efaa276a5b1 Mon Sep 17 00:00:00 2001 From: Matthew Glissmann Date: Tue, 23 Jul 2024 11:34:36 -0600 Subject: [PATCH] updated release-stable (#116) --- grommet-leaflet/tools/release-stable.mjs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/grommet-leaflet/tools/release-stable.mjs b/grommet-leaflet/tools/release-stable.mjs index 70bbfb3..29c356c 100644 --- a/grommet-leaflet/tools/release-stable.mjs +++ b/grommet-leaflet/tools/release-stable.mjs @@ -7,7 +7,6 @@ import 'dotenv/config'; const repoURL = `https://${process.env.GH_TOKEN}@github.com/grommet/grommet-leaflet.git`; const localFolder = path.resolve('.tmp/grommet-leaflet'); const localDist = path.resolve('dist'); -const localLibrary = path.resolve('lib'); const BRANCH = 'grommet-leaflet-stable'; @@ -15,13 +14,10 @@ if (process.env.CI) { deleteAsync(localFolder).then(() => { git() .clone(repoURL, localFolder) - .then(() => fs.move('package.json', `${localLibrary}/package.json`)) .then(() => git(localFolder).checkout(BRANCH)) .then(() => deleteAsync([`${localFolder}/**/*`])) - .then(() => { - fs.copy(localLibrary, localFolder); - fs.copy(localDist, `${localFolder}/dist`); - }) + .then(() => fs.copy(localDist, `${localFolder}/dist`)) + .then(() => fs.copy('package.json', `${localFolder}/package.json`)) .then(() => git(localFolder).add(['--all', '.'])) .then(() => git(localFolder).commit(`${BRANCH} updated`)) .then(() => git(localFolder).push('origin', BRANCH))