mirror of
https://github.com/pdfme/pdfme.git
synced 2026-04-18 21:19:10 -04:00
Add npm link script
This commit is contained in:
13
link-workspaces.sh
Executable file
13
link-workspaces.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
cd packages
|
||||
|
||||
for dir in $(ls -d */); do
|
||||
cd "$dir"
|
||||
npm link
|
||||
cd ..
|
||||
done
|
||||
|
||||
for dir in generator ui; do
|
||||
cd "$dir"
|
||||
npm link @pdfme/common
|
||||
cd ..
|
||||
done
|
||||
@@ -25,6 +25,7 @@
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"postinstall": "./link-workspaces.sh",
|
||||
"clean": "npm run --workspaces clean",
|
||||
"lint": "npm run --workspaces lint",
|
||||
"build": "npm run --workspaces clean && npm run --workspaces build",
|
||||
@@ -51,4 +52,4 @@
|
||||
"typescript": "^4.5.4",
|
||||
"url-loader": "^4.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user