Skip to content

Commit 95b0ea7

Browse files
committed
Upgrade dependencies and add build duration logging
- when 'done' building, say how much time it took, e.g. Done in 20s. ├── apps │ ├── browser │ │ ├── package.json │ │ ├── scripts │ │ │ ├── build.mjs │ │ │ ├── bump.js │ │ │ ├── create-firefox-build.ts │ │ │ └── create-zip-archives.ts │ │ ├── tsconfig.json │ │ └── vite.config.ts │ └── editor │ ├── package.json │ ├── scripts │ │ └── build.mjs │ ├── src │ │ └── views │ │ └── prompt │ │ └── backend │ │ ├── message-handlers │ │ │ └── handle-open-website.ts │ │ └── utils │ │ └── website-fetcher.ts │ ├── tsconfig.json │ └── vite.config.ts └── tsconfig.json
1 parent 9ec0d1f commit 95b0ea7

4 files changed

Lines changed: 86 additions & 48 deletions

File tree

‎apps/browser/package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"bump": "node scripts/bump.js"
88
},
99
"devDependencies": {
10-
"@types/archiver": "6.0.3",
10+
"@types/archiver": "6.0.4",
1111
"@types/node": "20.x",
12-
"@types/react": "18.2.60",
13-
"@types/react-dom": "18.2.19",
14-
"@types/webextension-polyfill": "0.12.4",
15-
"archiver": "6.0.1",
12+
"@types/react": "18.2.79",
13+
"@types/react-dom": "18.2.25",
14+
"@types/webextension-polyfill": "0.12.6",
15+
"archiver": "6.0.2",
1616
"baseline-browser-mapping": "2.11.35",
17-
"sass": "1.93.2",
17+
"sass": "1.93.3",
1818
"ts-node": "10.9.2",
1919
"vite": "8.3.6",
2020
"webextension-polyfill": "0.12.0"
2121
},
2222
"dependencies": {
2323
"classnames": "2.5.1",
24-
"react": "18.2.0",
25-
"react-dom": "18.2.0"
24+
"react": "18.3.1",
25+
"react-dom": "18.3.1"
2626
}
2727
}

‎apps/browser/scripts/build.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const mode = is_watch ? 'development' : 'production'
1212
process.env.NODE_ENV = mode
1313

1414
const run = async () => {
15+
const start_time = Date.now()
1516
console.log('Building...')
1617

1718
if (!is_watch) {
@@ -21,7 +22,8 @@ const run = async () => {
2122
const pending = new Set(targets)
2223
const finish = (target) => {
2324
if (pending.delete(target) && pending.size == 0) {
24-
console.log('Done.')
25+
const time = ((Date.now() - start_time) / 1000).toFixed(1)
26+
console.log(`Finished in ${time}s.`)
2527
}
2628
}
2729

‎apps/editor/scripts/build.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const clean = () => {
3030
}
3131

3232
const run = async () => {
33+
const start_time = Date.now()
3334
console.log('Building...')
3435
clean()
3536

@@ -48,7 +49,8 @@ const run = async () => {
4849
const pending = new Set(targets)
4950
const finish = (target) => {
5051
if (pending.delete(target) && pending.size == 0) {
51-
console.log('Done.')
52+
const time = ((Date.now() - start_time) / 1000).toFixed(1)
53+
console.log(`Finished in ${time}s.`)
5254
}
5355
}
5456

‎pnpm-lock.yaml‎

Lines changed: 72 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)