From 53c4b2c2f680be195bf4783a5de08dd5125c4117 Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Sun, 15 Sep 2024 10:38:36 +0200 Subject: [PATCH] restore demo builds (#3781) --- examples/cm6-graphql-parcel/package.json | 3 ++- examples/monaco-graphql-webpack/package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/cm6-graphql-parcel/package.json b/examples/cm6-graphql-parcel/package.json index f6cb82f7761..53cc6a19be7 100644 --- a/examples/cm6-graphql-parcel/package.json +++ b/examples/cm6-graphql-parcel/package.json @@ -7,7 +7,8 @@ "private": true, "scripts": { "start": "parcel src/index.html -p 8080", - "build": "parcel build src/index.html --public-url /" + "build": "parcel build src/index.html --public-url /", + "build-demo": "yarn build && mkdirp ../../packages/graphiql/cm6 && cp -r dist ../../packages/graphiql/cm6/" }, "browserslist": { "production": [ diff --git a/examples/monaco-graphql-webpack/package.json b/examples/monaco-graphql-webpack/package.json index ba412189401..1d85896305b 100644 --- a/examples/monaco-graphql-webpack/package.json +++ b/examples/monaco-graphql-webpack/package.json @@ -6,7 +6,8 @@ "description": "A simple monaco example with webpack and typescript", "scripts": { "build": "cross-env NODE_ENV=production webpack-cli", - "start": "cross-env NODE_ENV=development webpack-cli serve" + "start": "cross-env NODE_ENV=development webpack-cli serve", + "build-demo": "yarn build && mkdirp ../../packages/graphiql/monaco && cp -r dist/* ../../packages/graphiql/monaco/" }, "dependencies": { "graphql": "^16.9.0",