Skip to content

Commit a6056bd

Browse files
committed
chore: Fix release script some more
1 parent 8454147 commit a6056bd

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"dependencies": {
3030
"@faker-js/faker": "^8.0.2",
3131
"fictional": "^1.0.0",
32+
"string-argv": "^0.3.2",
3233
"uuid": "^8.3.2"
3334
},
3435
"devDependencies": {

scripts/release.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ const semver = require('semver')
33
const fs = require('fs/promises');
44
const path = require('path')
55
const spawn = require('@expo/spawn-async')
6+
const { parseArgsStringToArgv } = require('string-argv')
67

78
let packed = []
89

910
const exec = async (cmd, opts) => {
1011
console.log()
1112
console.log(`$ ${cmd}`)
12-
const [command, ...args] = cmd.split(' ')
13+
const [command, ...args] = parseArgsStringToArgv(cmd)
1314

1415
if (!process.env.DRY) {
1516
return await spawn(command, args, { stdio: 'inherit', ...opts })

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4101,6 +4101,11 @@ static-extend@^0.1.1:
41014101
define-property "^0.2.5"
41024102
object-copy "^0.1.0"
41034103

4104+
string-argv@^0.3.2:
4105+
version "0.3.2"
4106+
resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6"
4107+
integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==
4108+
41044109
string-length@^4.0.1:
41054110
version "4.0.2"
41064111
resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a"

0 commit comments

Comments
 (0)