Skip to content

Commit

Permalink
revert to original process (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
halocline authored Jul 22, 2024
1 parent 54b1712 commit 9a6e76b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions grommet-leaflet/tools/release-stable.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deleteAsync, deleteSync } from 'del';
import { deleteAsync } from 'del';
import fs from 'fs-extra';
import git from 'simple-git';
import path from 'path';
Expand All @@ -7,6 +7,7 @@ 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');
// eslint-disable-next-line no-unused-vars
const packageInfo = ['package.json', 'LICENSE', 'README.md'].map(
file => `!${localFolder}/${file}`,
);
Expand All @@ -19,10 +20,10 @@ if (process.env.CI) {
.clone(repoURL, localFolder)
.then(() => git(localFolder).checkout(BRANCH))
.then(() =>
deleteSync([
deleteAsync([
`${localFolder}/**/*`,
`${localFolder}/.*`,
...packageInfo,
// `${localFolder}/.*`,
// ...packageInfo,
]),
)
.then(() => fs.copy(localDist, `${localFolder}/dist`))
Expand Down

0 comments on commit 9a6e76b

Please sign in to comment.