@spark-ui/cli-utils 2.11.15 → 2.11.16
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/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/test/spark-generate.test.ts +2 -2
- package/test/utils/cmd.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.11.16](https://github.com/adevinta/spark/compare/@spark-ui/cli-utils@2.11.15...@spark-ui/cli-utils@2.11.16) (2023-08-31)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @spark-ui/cli-utils
|
|
9
|
+
|
|
6
10
|
## [2.11.15](https://github.com/adevinta/spark/compare/@spark-ui/cli-utils@2.11.14...@spark-ui/cli-utils@2.11.15) (2023-08-29)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @spark-ui/cli-utils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-ui/cli-utils",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.16",
|
|
4
4
|
"description": "Spark CLI utils",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/fs-extra": "11.0.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "4cdee86bb86f13da6e349580b97b8b577000e59c"
|
|
42
42
|
}
|
|
@@ -20,7 +20,7 @@ describe('CLI `spark generate` (component package)', () => {
|
|
|
20
20
|
// WHEN we execute the `spark generate` command
|
|
21
21
|
const response = await cliProcess.execute(
|
|
22
22
|
['generate'],
|
|
23
|
-
[packageName, ENTER, packageType, ENTER, 'This is my foo component', ENTER]
|
|
23
|
+
[packageName, ENTER, packageType, ENTER, 'This is my foo component', ENTER]
|
|
24
24
|
)
|
|
25
25
|
const contextPath = TemplateGenerator.CONTEXTS[packageType] as string
|
|
26
26
|
const packagePath = path.join(process.cwd(), 'packages', contextPath, packageName)
|
|
@@ -62,7 +62,7 @@ describe('CLI `spark generate` (component package)', () => {
|
|
|
62
62
|
|
|
63
63
|
// THEN it throws an error and fails to create files for this package
|
|
64
64
|
expect(response).toContain(
|
|
65
|
-
'Name name must contain letters and dash symbols only (ex: "my-package")'
|
|
65
|
+
'Name name must contain letters and dash symbols only (ex: "my-package")'
|
|
66
66
|
)
|
|
67
67
|
expect(fse.pathExistsSync(packagePath)).toBe(false)
|
|
68
68
|
})
|
package/test/utils/cmd.js
CHANGED
|
@@ -34,7 +34,7 @@ function createProcess(processPath, args = [], env = null) {
|
|
|
34
34
|
preventAutoStart: false,
|
|
35
35
|
PATH, // This is needed in order to get all the binaries in your current terminal
|
|
36
36
|
},
|
|
37
|
-
env
|
|
37
|
+
env
|
|
38
38
|
),
|
|
39
39
|
stdio: [null, null, null, 'ipc'], // This enables interprocess communication (IPC)
|
|
40
40
|
})
|
|
@@ -131,7 +131,7 @@ function executeWithInput(processPath, args, inputs, opts = {}) {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
resolve(result.toString())
|
|
134
|
-
})
|
|
134
|
+
})
|
|
135
135
|
)
|
|
136
136
|
})
|
|
137
137
|
|