@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/cli-utils",
3
- "version": "2.14.0-beta.6",
3
+ "version": "2.14.0-beta.7",
4
4
  "description": "Spark CLI utils",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  import * as process from 'node:process'
2
2
 
3
- import { appendFileSync, existsSync, mkdirSync } from 'fs'
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
- appendFileSync(`${path.join(process.cwd(), output)}`, JSON.stringify(result, null, 2))
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)