diff --git a/package.json b/package.json index 72f53ce6..400aeedd 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "description": "Redoc for DocusaurusV2", "scripts": { - "build": "yarn workspaces foreach --exclude 'redocusaurus-website' run build", + "build": "yarn workspaces foreach --exclude 'redocusaurus-website' -t run build", "build:website": "yarn workspace redocusaurus-website run build", "clean": "yarn workspaces foreach -A exec \"rm -rf dist* .tsbuild*.info\"", "dev": "yarn workspaces foreach --exclude redocusaurus-website -p run dev", diff --git a/packages/docusaurus-plugin-redoc/package.json b/packages/docusaurus-plugin-redoc/package.json index eb9a8b6e..2a0aabc6 100644 --- a/packages/docusaurus-plugin-redoc/package.json +++ b/packages/docusaurus-plugin-redoc/package.json @@ -4,7 +4,7 @@ "description": "Redoc Plugin for DocusaurusV2", "main": "dist/index.js", "scripts": { - "build": "tsc", + "build": "tsc && echo \"built plugin\"", "dev": "tsc -w", "prepublish": "rm -rf .tsbuild.info", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/packages/docusaurus-theme-redoc/copy.sh b/packages/docusaurus-theme-redoc/copy.sh new file mode 100644 index 00000000..ca182b28 --- /dev/null +++ b/packages/docusaurus-theme-redoc/copy.sh @@ -0,0 +1,9 @@ +#!/bin/sh +echo "copying" + +cd src + +yarn copyfiles --verbose -e "./**/*.js" -e "./**/*.jsx" -e "./**/*.ts" -e "./**/*.tsx" "./**/*.*" ../dist/ +yarn copyfiles --verbose -e "./**/*.js" -e "./**/*.jsx" -e "./**/*.ts" -e "./**/*.tsx" "./**/*.*" ../dist-jsx/ + +echo "copied" \ No newline at end of file diff --git a/packages/docusaurus-theme-redoc/package.json b/packages/docusaurus-theme-redoc/package.json index 90e2126a..5e3cf9b6 100644 --- a/packages/docusaurus-theme-redoc/package.json +++ b/packages/docusaurus-theme-redoc/package.json @@ -4,11 +4,9 @@ "description": "Redoc Component for DocusaurusV2", "main": "dist/index.js", "scripts": { - "_copy": "yarn copyup -e \"./**/*.jsx\" -e \"./**/*.js\" -e \"./**/*.ts\" -e \"./**/*.tsx\" \"./src/**/*.*\"", - "copy": "yarn _copy ./dist && yarn _copy ./dist-jsx", + "copy": "sh copy.sh", "copy:watch": "nodemon --watch ./src/**/*.css -e css --exec \"yarn copy\"", - "build": "tsc -p tsconfig.jsx.json && tsc", - "postbuild": "yarn copy", + "build": "tsc -p tsconfig.jsx.json && tsc && yarn copy && echo \"built theme\"", "dev": "concurrently 'tsc -w -p tsconfig.jsx.json' 'tsc -w' 'yarn copy:watch'", "prepublish": "rm -rf rm .tsbuild.info .tsbuild.jsx.info", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/packages/redocusaurus/package.json b/packages/redocusaurus/package.json index f274d4b3..388ee007 100644 --- a/packages/redocusaurus/package.json +++ b/packages/redocusaurus/package.json @@ -9,7 +9,7 @@ "./theme": "./dist/theme.js" }, "scripts": { - "build": "tsc", + "build": "tsc && echo \"built preset\"", "dev": "tsc -w", "prepublish": "rm -rf .tsbuild.info", "test": "echo \"Error: no test specified\" && exit 1"