wattpm-utils 3.15.0 → 3.17.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.
@@ -9,11 +9,11 @@ import {
9
9
  } from '@platformatic/foundation'
10
10
  import { loadConfiguration } from '@platformatic/runtime'
11
11
  import { bold } from 'colorette'
12
- import { parse } from 'dotenv'
13
12
  import { execa } from 'execa'
14
13
  import { existsSync } from 'node:fs'
15
14
  import { readFile, writeFile } from 'node:fs/promises'
16
15
  import { resolve } from 'node:path'
16
+ import { parseEnv } from 'node:util'
17
17
  import { rsort, satisfies } from 'semver'
18
18
  import { packages } from '../packages.js'
19
19
 
@@ -22,7 +22,7 @@ async function executeCommand (root, ...args) {
22
22
  const npmrc = resolve(root, '.npmrc')
23
23
  if (existsSync(npmrc)) {
24
24
  try {
25
- const env = parse(await readFile(npmrc, 'utf-8'))
25
+ const env = parseEnv(await readFile(npmrc, 'utf-8'))
26
26
 
27
27
  if (env['dry-run'] === 'true') {
28
28
  return
@@ -13,11 +13,11 @@ import {
13
13
  } from '@platformatic/foundation'
14
14
  import { loadConfiguration } from '@platformatic/runtime'
15
15
  import { bold } from 'colorette'
16
- import { parse } from 'dotenv'
17
16
  import { execa } from 'execa'
18
17
  import { existsSync } from 'node:fs'
19
18
  import { readFile, writeFile } from 'node:fs/promises'
20
19
  import { basename, dirname, isAbsolute, join, relative, resolve } from 'node:path'
20
+ import { parseEnv } from 'node:util'
21
21
  import { version } from '../version.js'
22
22
  import { installDependencies } from './dependencies.js'
23
23
 
@@ -238,7 +238,7 @@ async function importApplication (logger, configurationFile, id, path, url, bran
238
238
 
239
239
  // Make sure the environment variable is not already defined
240
240
  if (existsSync(envFile)) {
241
- const env = parse(await readFile(envFile, 'utf-8'))
241
+ const env = parseEnv(await readFile(envFile, 'utf-8'))
242
242
 
243
243
  if (env[envVariable]) {
244
244
  return logFatalError(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wattpm-utils",
3
- "version": "3.15.0",
3
+ "version": "3.17.0",
4
4
  "description": "The Node.js Application Server Utilities Commands",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -28,9 +28,9 @@
28
28
  "dotenv": "^16.4.5",
29
29
  "execa": "^9.4.0",
30
30
  "semver": "^7.7.0",
31
- "@platformatic/foundation": "3.15.0",
32
- "@platformatic/runtime": "3.15.0",
33
- "create-wattpm": "3.15.0"
31
+ "@platformatic/runtime": "3.17.0",
32
+ "@platformatic/foundation": "3.17.0",
33
+ "create-wattpm": "3.17.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "cleaner-spec-reporter": "^0.5.0",
@@ -40,7 +40,7 @@
40
40
  "neostandard": "^0.12.0",
41
41
  "typescript": "^5.5.4",
42
42
  "undici": "^7.0.0",
43
- "@platformatic/node": "3.15.0"
43
+ "@platformatic/node": "3.17.0"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=22.19.0"