From 63d7f49cdb06b97bb88fb9204fbfc2d39c3f035b Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Sun, 24 Dec 2023 00:51:22 +0100 Subject: [PATCH] Add release JSON files to the dist folder Parcel needs to know about them. Add a raw transformer or parcel tries to convert it to Javascript. --- .parcelrc | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .parcelrc diff --git a/.parcelrc b/.parcelrc new file mode 100644 index 00000000000..27b537868d5 --- /dev/null +++ b/.parcelrc @@ -0,0 +1,6 @@ +{ + "extends": "@parcel/config-default", + "transformers": { + "*.json": ["@parcel/transformer-raw"] + } +} diff --git a/package.json b/package.json index 197f917e6f0..1f9fdd461a6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "parcel build 'output/**/**.html'" + "build": "parcel build 'output/**/**.html' 'output/**/**.json'" }, "keywords": [], "author": "",