Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Add comment so sandbox.sh package.json changes

adrianryt6998c8d90314
diff --git a/bin/sandbox.sh b/bin/sandbox.sh
index 2f55fb8908..31e53fdf14 100755
--- a/bin/sandbox.sh
+++ b/bin/sandbox.sh
@@ -111,6 +111,8 @@ bin/rails javascript:install:esbuild
bin/rails turbo:install
yarn install
+# for npm versions lower than 7.1 we need to add "build" script manually
+# so below is added to ensure compatibility
cat <<RUBY > package.json
{
"name": "app",
@@ -121,7 +123,7 @@ cat <<RUBY > package.json
"esbuild": "^0.14.47"
},
"scripts": {
- "build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds"
+ "build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=assets"
}
}
RUBY