From 237f6f01d9e9099193b53b05362db9f22565445c Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Sun, 19 Jun 2022 23:59:17 +0300 Subject: [PATCH] rebuild deps on vscode compile; split components build targets --- packages/components/package.json | 5 ++++- packages/vscode-ext/package.json | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index e6413a16..ec3137e9 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -64,7 +64,10 @@ }, "scripts": { "start": "cross-env REACT_APP_FAST_REFRESH=false && start-storybook -p 6006 -s public", - "build": "tsc -b && postcss ./src/styles/main.css -o ./dist/main.css && build-storybook -s public", + "build:cjs": "tsc -b", + "build:css": "postcss ./src/styles/main.css -o ./dist/main.css", + "build:storybook": "build-storybook -s public", + "build": "yarn run build:cjs && yarn run build:css && yarn run build:storybook", "bundle": "webpack", "all": "yarn bundle && yarn build", "lint": "prettier --check .", diff --git a/packages/vscode-ext/package.json b/packages/vscode-ext/package.json index a3887aae..12e23e54 100644 --- a/packages/vscode-ext/package.json +++ b/packages/vscode-ext/package.json @@ -3,7 +3,7 @@ "displayName": "Squiggle", "description": "Squiggle language support", "license": "MIT", - "version": "0.0.3", + "version": "0.0.4", "publisher": "QURI", "repository": { "type": "git", @@ -39,7 +39,7 @@ "scripts": { "vscode:prepublish": "yarn run compile", "compile:tsc": "tsc -p ./", - "compile:vendor": "(cd ../components && yarn run build) && mkdir -p media/vendor && cp ../components/dist/bundle.js media/vendor/components.js && cp ../components/dist/main.css media/vendor/components.css && cp ../../node_modules/react/umd/react.production.min.js media/vendor/react.js && cp ../../node_modules/react-dom/umd/react-dom.production.min.js media/vendor/react-dom.js && cp ../website/static/img/quri-logo.png media/vendor/icon.png", + "compile:vendor": "(cd ../squiggle-lang && yarn run build) && (cd ../components && yarn run bundle && yarn run build:css) && mkdir -p media/vendor && cp ../components/dist/bundle.js media/vendor/components.js && cp ../components/dist/main.css media/vendor/components.css && cp ../../node_modules/react/umd/react.production.min.js media/vendor/react.js && cp ../../node_modules/react-dom/umd/react-dom.production.min.js media/vendor/react-dom.js && cp ../website/static/img/quri-logo.png media/vendor/icon.png", "compile": "yarn run compile:tsc && yarn run compile:vendor", "watch": "tsc -watch -p ./", "pretest": "yarn run compile && yarn run lint",