Skip to content

Commit 4aed020

Browse files
committed
Fix log levels rename compile ui -> compile ui-esbuild
1 parent ccc5ca7 commit 4aed020

File tree

10 files changed

+37
-25
lines changed

10 files changed

+37
-25
lines changed

common/config/rush/pnpm-lock.yaml

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

common/scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"format": "echo \"No format specified\""
66
},
77
"devDependencies": {
8-
"@hcengineering/platform-rig": "workspace:^0.7.17",
8+
"@hcengineering/platform-rig": "workspace:^0.7.18",
99
"@typescript-eslint/eslint-plugin": "^6.21.0",
1010
"eslint-plugin-import": "^2.26.0",
1111
"eslint-plugin-promise": "^6.1.1",

packages/measurements-otlp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"_phase:validate": "compile validate"
2828
},
2929
"devDependencies": {
30-
"@hcengineering/platform-rig": "workspace:^0.7.17",
30+
"@hcengineering/platform-rig": "workspace:^0.7.18",
3131
"jest": "^29.7.0",
3232
"ts-jest": "^29.1.1",
3333
"@types/jest": "^29.5.5",

packages/measurements/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"_phase:validate": "compile validate"
2828
},
2929
"devDependencies": {
30-
"@hcengineering/platform-rig": "workspace:^0.7.17",
30+
"@hcengineering/platform-rig": "workspace:^0.7.18",
3131
"jest": "^29.7.0",
3232
"ts-jest": "^29.1.1",
3333
"@types/jest": "^29.5.5",

packages/platform-rig/CHANGELOG.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
{
22
"name": "@hcengineering/platform-rig",
33
"entries": [
4+
{
5+
"version": "0.7.18",
6+
"tag": "@hcengineering/platform-rig_v0.7.18",
7+
"date": "Sun, 12 Oct 2025 15:50:41 GMT",
8+
"comments": {
9+
"patch": [
10+
{
11+
"comment": "Revert compile ui do nothing"
12+
}
13+
]
14+
}
15+
},
416
{
517
"version": "0.7.17",
618
"tag": "@hcengineering/platform-rig_v0.7.17",

packages/platform-rig/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Change Log - @hcengineering/platform-rig
22

3-
This log was last generated on Sun, 12 Oct 2025 03:31:47 GMT and should not be manually modified.
3+
This log was last generated on Sun, 12 Oct 2025 15:50:41 GMT and should not be manually modified.
4+
5+
## 0.7.18
6+
Sun, 12 Oct 2025 15:50:41 GMT
7+
8+
### Patches
9+
10+
- Revert compile ui do nothing
411

512
## 0.7.17
613
Sun, 12 Oct 2025 03:31:47 GMT

packages/platform-rig/bin/compile.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,12 @@ function collectFileStats(source, result) {
122122
}
123123
}
124124

125-
function cleanNonModified(before, after) {
126-
for (const [k, v] of Object.entries(before)) {
127-
if (after[k] === v) {
128-
// Same modify date, looks like not modified
129-
console.log('clean file', k)
130-
rmSync(k)
131-
}
132-
}
133-
}
134-
135125
switch (args[0]) {
136126
case 'ui': {
127+
console.log('Nothing to compile to UI')
128+
break
129+
}
130+
case 'ui-esbuild': {
137131
console.log('Building UI package with Svelte support...')
138132
let st = performance.now()
139133
const filesToTranspile = collectFiles(join(process.cwd(), 'src'))
@@ -144,12 +138,10 @@ switch (args[0]) {
144138

145139
performESBuildWithSvelte(filesToTranspile)
146140
.then(() => generateSvelteTypes())
147-
.then(() => validateTSC())
148141
.then(() => {
149142
console.log('UI build time: ', Math.round((performance.now() - st) * 100) / 100)
150143
collectFileStats('lib', after)
151144
collectFileStats('types', after)
152-
cleanNonModified(before, after)
153145
})
154146
break
155147
}
@@ -163,7 +155,6 @@ switch (args[0]) {
163155
performESBuild(filesToTranspile).then(() => {
164156
console.log('Transpile time: ', Math.round((performance.now() - st) * 100) / 100)
165157
collectFileStats('lib', after)
166-
cleanNonModified(before, after)
167158
})
168159
break
169160
}
@@ -223,6 +214,7 @@ async function performESBuildWithSvelte(filesToTranspile) {
223214
outdir: 'lib',
224215
outbase: 'src',
225216
keepNames: true,
217+
logLevel: 'error',
226218
sourcemap: 'linked',
227219
allowOverwrite: true,
228220
format: 'cjs',
@@ -251,6 +243,7 @@ async function performESBuildWithSvelte(filesToTranspile) {
251243
outExtension: { '.js': '.svelte.js' },
252244
keepNames: true,
253245
sourcemap: 'linked',
246+
logLevel: 'error',
254247
allowOverwrite: true,
255248
format: 'cjs',
256249
color: true,

packages/platform-rig/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hcengineering/platform-rig",
3-
"version": "0.7.17",
3+
"version": "0.7.18",
44
"scripts": {
55
"build": "echo 'Not required'",
66
"format": "echo 'Not required'"

packages/postgres-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"_phase:validate": "compile validate"
2929
},
3030
"devDependencies": {
31-
"@hcengineering/platform-rig": "workspace:^0.7.17",
31+
"@hcengineering/platform-rig": "workspace:^0.7.18",
3232
"jest": "^29.7.0",
3333
"ts-jest": "^29.1.1",
3434
"@types/jest": "^29.5.5",

packages/ui-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"_phase:validate": "compile validate"
3333
},
3434
"devDependencies": {
35-
"@hcengineering/platform-rig": "workspace:^0.7.17",
35+
"@hcengineering/platform-rig": "workspace:^0.7.18",
3636
"svelte-loader": "^3.2.0",
3737
"sass": "^1.53.0",
3838
"svelte-preprocess": "^5.1.3",

0 commit comments

Comments
 (0)