Skip to content

Commit 6659779

Browse files
committed
bumped version of 'yeoman-generator' to ^7.0.0
* upgraded the dependency of 'yeoman-test' already to '^8.0.0' because of a problematic dependency in '^7.0.0' ([email protected]...', has been by '[email protected]...') * added a 'resolution' on '[email protected]', as that dependency is only referenced as peer-dependency by all up-to-date versions of using packages - which are not installed by yarn (in contrast to npm) -, but it's required at runtime; filed a request on Github to add '[email protected]' as a prod dependency to 'yeoman-generator': yeoman/generator#1495; besides '[email protected]' insists on 'mem-fs-editor@^10.0.3' (which depends on 'mem-fs@^3.0.0'), both declare "acceptDependencies" { "mem-fs": "^4.0.0" } - which again is not considered by yarn Signed-off-by: Christian Schneider <[email protected]>
1 parent 0fdbc30 commit 6659779

File tree

4 files changed

+1096
-1272
lines changed

4 files changed

+1096
-1272
lines changed

.vscode/launch.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,21 @@
1515
"theia-extension"
1616
],
1717
"cwd": "${workspaceFolder}/testing",
18-
"console": "integratedTerminal",
18+
"console": "integratedTerminal",
1919
"skipFiles": [
2020
"<node_internals>/**"
2121
],
22+
},
23+
{
24+
"name": "Run tests via YARN",
25+
"request": "launch",
26+
"nodeVersionHint": 18,
27+
"runtimeExecutable": "yarn",
28+
"args": [ "test" ],
29+
"skipFiles": [
30+
"<node_internals>/**"
31+
],
32+
"type": "node"
2233
}
2334
]
2435
}

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"dependencies": {
2424
"request": "^2.88.2",
2525
"tar": "^6.1.1",
26-
"yeoman-generator": "^6.0.0"
26+
"yeoman-generator": "^7.0.0"
2727
},
2828
"devDependencies": {
2929
"@types/request": "^2.48.0",
@@ -33,8 +33,11 @@
3333
"rimraf": "^3.0.0",
3434
"typescript": "~4.7.0",
3535
"yeoman-assert": "^3.1.1",
36-
"yeoman-environment": "^3.0.0",
37-
"yeoman-test": "^6.0.0"
36+
"yeoman-environment": "^4.0.0",
37+
"yeoman-test": "^8.0.0"
38+
},
39+
"resolutions": {
40+
"mem-fs": "^4.0.0"
3841
},
3942
"files": [
4043
"generators",

test/generator-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('test extension generation', function () {
2828
it('generate the hello world extension', function (done) {
2929
const name = 'hello-world-test';
3030
helpers.run(path.join(__dirname, '../generators/app'))
31-
.withPrompts({
31+
.withAnswers({
3232
type: 'hello-world',
3333
name
3434
})

0 commit comments

Comments
 (0)