@spark-ui/cli-utils 2.14.0-beta.6 → 2.14.0-beta.7
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/package.json +1 -1
- package/src/scan/index.mjs +2 -2
package/package.json
CHANGED
package/src/scan/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as process from 'node:process'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { existsSync, mkdirSync, writeFileSync } from 'fs'
|
|
4
4
|
import merge from 'lodash.merge'
|
|
5
5
|
import path from 'path'
|
|
6
6
|
|
|
@@ -114,7 +114,7 @@ export async function adoption(options) {
|
|
|
114
114
|
if (!existsSync(dir)) {
|
|
115
115
|
mkdirSync(dir, { recursive: true })
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
writeFileSync(`${path.join(process.cwd(), output)}`, JSON.stringify(result, null, 2))
|
|
118
118
|
} catch (err) {
|
|
119
119
|
logger.error(`💥 Error writing file: ${err}`)
|
|
120
120
|
process.exit(1)
|