Skip to content

Commit ba353c5

Browse files
authored
fix: Updates build workflow to include clean; updates clean.sh to not delete dist from subfolders. (#64)
1 parent 766e54a commit ba353c5

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "1.0.0",
44
"description": "Samples for the Google Maps JavaScript API.",
55
"scripts": {
6-
"build-all": "npm run build --workspaces",
7-
"clean": "bash clean.sh"
6+
"build-all": "npm run clean && npm run build --workspaces",
7+
"clean": "bash samples/clean.sh"
88
},
99
"workspaces": [
1010
"samples/*"

samples/clean.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/bin/bash
22

3-
# Remove the global dist folder.
4-
rm -rf "../dist"
5-
6-
# Remove dist folders from each sample subdirectory.
7-
find * -type d -name "dist" -exec rm -rf {} +
3+
# Remove the global dist/samples folder.
4+
rm -rf "dist/samples"

0 commit comments

Comments
 (0)