Skip to content

Commit

Permalink
bumped yeoman version to "^5.0.0", solves #182
Browse files Browse the repository at this point in the history
* added launch config for debugging the generator
* tested with yo@4 and yo@5

Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
  • Loading branch information
sailingKieler committed Dec 4, 2023
1 parent f337f93 commit b08ebd1
Show file tree
Hide file tree
Showing 3 changed files with 2,296 additions and 2,066 deletions.
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Yo via NPM",
"type": "node",
"request": "launch",
"preLaunchTask": "npm: mkdir-debug-cwd",
"runtimeExecutable": "npx",
"program": "yo",
"args": [
"theia-extension"
],
"cwd": "${workspaceFolder}/testing",
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
}
]
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"fs-extra": "^10.0.0",
"request": "^2.88.2",
"tar": "^6.1.1",
"yeoman-generator": "^4.0.2"
"yeoman-generator": "^5.0.0"
},
"devDependencies": {
"@types/mocha": "^5.2.7",
Expand All @@ -32,7 +32,7 @@
"rimraf": "^3.0.0",
"typescript": "~4.5.5",
"yeoman-assert": "^3.1.1",
"yeoman-test": "^2.0.0"
"yeoman-test": "^5.0.0"
},
"files": [
"generators",
Expand All @@ -43,6 +43,8 @@
"clean": "rimraf lib",
"build": "tsc",
"watch": "tsc -w",
"test": "mocha"
"test": "mocha",
"mkdir-debug-cwd": "mkdirp ./testing && rimraf ./testing/*",
"about:mkdir-debug-cwd": "echo 'Is used as preLaunchTask in .vscode/launch.json; mkdirp is transitively pulled by mocha'"
}
}
Loading

0 comments on commit b08ebd1

Please sign in to comment.