@platformatic/runtime 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/compile.js +5 -4
- package/package.json +9 -9
package/lib/compile.js
CHANGED
|
@@ -12,7 +12,6 @@ async function compile (argv, logger) {
|
|
|
12
12
|
const { configManager, configType } = await loadConfig({}, argv, {
|
|
13
13
|
watch: false
|
|
14
14
|
})
|
|
15
|
-
|
|
16
15
|
/* c8 ignore next */
|
|
17
16
|
if (!logger) {
|
|
18
17
|
let stream
|
|
@@ -28,7 +27,9 @@ async function compile (argv, logger) {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
let compiled = false
|
|
31
|
-
|
|
30
|
+
const compileOptions = {
|
|
31
|
+
clean: argv.includes('--clean')
|
|
32
|
+
}
|
|
32
33
|
if (configType === 'runtime') {
|
|
33
34
|
for (const service of configManager.current.services) {
|
|
34
35
|
const childLogger = logger.child({ name: service.id })
|
|
@@ -41,11 +42,11 @@ async function compile (argv, logger) {
|
|
|
41
42
|
watch: false
|
|
42
43
|
})
|
|
43
44
|
|
|
44
|
-
const serviceWasCompiled = await tsCompiler.compile(service.path, configManager.current, childLogger)
|
|
45
|
+
const serviceWasCompiled = await tsCompiler.compile(service.path, configManager.current, childLogger, compileOptions)
|
|
45
46
|
compiled ||= serviceWasCompiled
|
|
46
47
|
}
|
|
47
48
|
} else {
|
|
48
|
-
compiled = await tsCompiler.compile(dirname(configManager.fullPath), configManager.current, logger)
|
|
49
|
+
compiled = await tsCompiler.compile(dirname(configManager.fullPath), configManager.current, logger, compileOptions)
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
return compiled
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"standard": "^17.1.0",
|
|
29
29
|
"tsd": "^0.29.0",
|
|
30
30
|
"typescript": "^5.2.2",
|
|
31
|
-
"@platformatic/sql-
|
|
32
|
-
"@platformatic/sql-
|
|
31
|
+
"@platformatic/sql-mapper": "1.11.0",
|
|
32
|
+
"@platformatic/sql-graphql": "1.11.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@fastify/error": "^3.4.0",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"pino": "^8.16.0",
|
|
49
49
|
"pino-pretty": "^10.2.3",
|
|
50
50
|
"undici": "^5.26.3",
|
|
51
|
-
"@platformatic/composer": "1.
|
|
52
|
-
"@platformatic/config": "1.
|
|
53
|
-
"@platformatic/
|
|
54
|
-
"@platformatic/
|
|
55
|
-
"@platformatic/
|
|
56
|
-
"@platformatic/
|
|
51
|
+
"@platformatic/composer": "1.11.0",
|
|
52
|
+
"@platformatic/config": "1.11.0",
|
|
53
|
+
"@platformatic/service": "1.11.0",
|
|
54
|
+
"@platformatic/db": "1.11.0",
|
|
55
|
+
"@platformatic/utils": "1.11.0",
|
|
56
|
+
"@platformatic/telemetry": "1.11.0"
|
|
57
57
|
},
|
|
58
58
|
"standard": {
|
|
59
59
|
"ignore": [
|