Skip to content

Commit

Permalink
fix copy
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-gohri committed Nov 13, 2021
1 parent 0fa73c6 commit d64d954
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-redoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions packages/docusaurus-theme-redoc/copy.sh
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 2 additions & 4 deletions packages/docusaurus-theme-redoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/redocusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d64d954

Please sign in to comment.