coralite-scripts 0.40.0 → 0.40.2
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/libs/build-styles.js +4 -1
- package/libs/commands/build.js +15 -2
- package/package.json +2 -2
package/libs/build-styles.js
CHANGED
|
@@ -92,14 +92,17 @@ async function buildStyles ({
|
|
|
92
92
|
await fs.mkdir(output, { recursive: true })
|
|
93
93
|
await fs.writeFile(outputFile, css)
|
|
94
94
|
|
|
95
|
+
const outputs = [outputFile]
|
|
96
|
+
|
|
95
97
|
if (map) {
|
|
96
98
|
const mapPath = outputFile + '.map'
|
|
97
99
|
await fs.writeFile(mapPath, typeof map === 'string' ? map : JSON.stringify(map))
|
|
100
|
+
outputs.push(mapPath)
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
return {
|
|
101
104
|
input: filePath,
|
|
102
|
-
output
|
|
105
|
+
output,
|
|
103
106
|
duration
|
|
104
107
|
}
|
|
105
108
|
}))
|
package/libs/commands/build.js
CHANGED
|
@@ -185,6 +185,11 @@ export async function buildCommand (config, options, logger = null) {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
const trackedFiles = coralite.getTrackedOutputFiles()
|
|
189
|
+
for (const file of trackedFiles) {
|
|
190
|
+
validFiles.add(file)
|
|
191
|
+
}
|
|
192
|
+
|
|
188
193
|
const publicDir = config.public
|
|
189
194
|
|
|
190
195
|
if (publicDir) {
|
|
@@ -229,10 +234,18 @@ export async function buildCommand (config, options, logger = null) {
|
|
|
229
234
|
|
|
230
235
|
for (let i = 0; i < results.length; i++) {
|
|
231
236
|
const result = results[i]
|
|
232
|
-
|
|
237
|
+
|
|
238
|
+
if (Array.isArray(result.output)) {
|
|
239
|
+
for (const output of result.output) {
|
|
240
|
+
validFiles.add(output)
|
|
241
|
+
}
|
|
242
|
+
} else {
|
|
243
|
+
validFiles.add(result.output)
|
|
244
|
+
}
|
|
233
245
|
|
|
234
246
|
if (options.verbose) {
|
|
235
|
-
|
|
247
|
+
const displayPath = Array.isArray(result.output) ? result.output[0] : result.output
|
|
248
|
+
log(toTime() + toMS(result.duration) + dash + displayPath + '\n')
|
|
236
249
|
}
|
|
237
250
|
}
|
|
238
251
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coralite-scripts",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.2",
|
|
4
4
|
"description": "Configuration and scripts for Create Coralite.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"portfinder": "^1.0.38",
|
|
62
62
|
"postcss": "^8.5.15",
|
|
63
63
|
"sass": "^1.101.0",
|
|
64
|
-
"coralite": "0.40.
|
|
64
|
+
"coralite": "0.40.2"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "premove dist && pnpm build:types",
|