Skip to content

Commit 195ce0a

Browse files
committed
Bug fixes for npm and casks parameter
1 parent bc0d065 commit 195ce0a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "default",
3-
"version": "0.15.0",
3+
"version": "0.15.1",
44
"description": "",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/homebrew/casks-parameter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ export class CasksParameter extends StatefulParameter<HomebrewConfig, string[]>
131131

132132
let result: string;
133133
if ($) {
134-
result = (await $.spawnSafe(`brew info -q --json=v2 ${casks.join(' ')}`)).data.replaceAll('\n', '')
134+
result = (await $.spawnSafe(`brew info -q --json=v2 ${casks.map((c) => `"${c}"`).join(' ')}`)).data.replaceAll('\n', '')
135135
} else {
136-
result = (await codifySpawn(`brew info -q --json=v2 ${casks.join(' ')}`)).data.replaceAll('\n', '')
136+
result = (await codifySpawn(`brew info -q --json=v2 ${casks.map((c) => `"${c}"`).join(' ')}`)).data.replaceAll('\n', '')
137137
}
138138

139139
const brewInfo = JSON.parse(result);

src/resources/node/npm/npm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { CreatePlan, DestroyPlan, RefreshContext, Resource, ResourceSettings, ge
22
import { ResourceConfig } from 'codify-schemas';
33

44
import { NpmGlobalInstallParameter, NpmPackage } from './global-install.js';
5-
import schema from './npm-shema.json'
5+
import schema from './npm-schema.json'
66

77
export interface NpmConfig extends ResourceConfig {
88
globalInstall: Array<NpmPackage | string>

0 commit comments

Comments
 (0)