Skip to content

Commit 68fd442

Browse files
committed
BUGFIX: Yet another try to save the gitignore of the scaffold into the published packages on npmjs.org #34
1 parent 9c774b8 commit 68fd442

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

build/release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ else
2828
# We will rename it upon bootstrapping the application to the original name again.
2929
# @see https://github.com/npm/npm/issues/3763
3030
#
31-
mv packages/create-react-microservice-scaffold/src/.gitignore packages/create-react-microservice-scaffold/src/.gitignore-keep
31+
cat packages/create-react-microservice-scaffold/src/.gitignore > packages/create-react-microservice-scaffold/src/.npmignore
32+
mv packages/create-react-microservice-scaffold/src/.gitignore packages/create-react-microservice-scaffold/src/.git-ignore
33+
ls -lah packages/create-react-microservice-scaffold/src/
3234

3335
echo "Releasing $VERSION ..."
3436
npx lerna publish --skip-git --yes --exact --repo-version=$VERSION

packages/create-react-microservice/src/commands/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class CreateReactMicroService extends Command {
265265
// Rename the .gitignore of the scaffold to it's original name since NPM was ignoring it while publishing no matter what.
266266
// @see https://github.com/npm/npm/issues/3763
267267
//
268-
const srcGitIgnore = path.join(cwd, '.gitignore-keep');
268+
const srcGitIgnore = path.join(cwd, '.git-ignore');
269269

270270
if (file.existsSync(srcGitIgnore)) {
271271
file.renameSync(srcGitIgnore, path.join(cwd, '.gitignore'))

0 commit comments

Comments
 (0)