From 939d6aaef3f321b82623b301f0c1f0599e53dda0 Mon Sep 17 00:00:00 2001 From: btopro Date: Fri, 26 Jul 2024 12:09:10 -0400 Subject: [PATCH] trying to fix ignore --- dist/.gitignore | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/.gitignore b/dist/.gitignore index a44058ca8..237502d7b 100644 --- a/dist/.gitignore +++ b/dist/.gitignore @@ -1,3 +1,5 @@ .DS_Store node_modules -dist \ No newline at end of file +dist +!app/dist/build/es6/node_modules +!app/dist/build/es6/node_modules/** \ No newline at end of file diff --git a/package.json b/package.json index 7eaf768b2..8c574a83c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "scripts": { "start": "cd app && hax11ty serve", "preinstall": "cd src/custom && yarn install && cd ../..", - "clean-up-pre": "rm -rf dist/build", + "clean-up-pre": "rm -rf dist && mkdir dist", "clean-up-post": "rm dist/assets/styles.css && cp src/styles.css dist/assets/styles.css && rm -rf dist/custom && cp -R src/custom dist/custom", "build:cdn": "yarn run clean-up-pre && cd src/custom && yarn run build && cd ../../app && env HAXCMS_CDN=true env HAXCMS_SERVICE_WORKER=true env HAXCMS_GITHUB=true hax11ty build && yarn run clean-up-post", "build": "yarn run clean-up-pre && cd src/custom && yarn run build && cd ../../app && env HAXCMS_CONTEXT=haxcms env HAXCMS_SERVICE_WORKER=true env HAXCMS_GITHUB=true hax11ty build && yarn run clean-up-post"