yeoman-generator 8.0.0-beta.8 → 8.0.1
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/dist/actions/fs.js +8 -20
- package/package.json +4 -4
package/dist/actions/fs.js
CHANGED
|
@@ -91,16 +91,10 @@ export class FsMixin {
|
|
|
91
91
|
existsDestination(...args) {
|
|
92
92
|
return this.fs.exists(...applyToFirstStringArg(this.destinationPath.bind(this), args));
|
|
93
93
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* @param destination - destination, absolute or relative to destinationPath().
|
|
99
|
-
* @param templateData - ejs data
|
|
100
|
-
* @param templateOptions - ejs options
|
|
101
|
-
* @param copyOptions - mem-fs-editor copy options
|
|
102
|
-
*/
|
|
103
|
-
renderTemplate(source = '', destination = source, templateData, copyOptions) {
|
|
94
|
+
renderTemplate(source = '', destination = source, templateData, copyOptions, compatOptions) {
|
|
95
|
+
if (compatOptions || 'context' in (copyOptions ?? {})) {
|
|
96
|
+
copyOptions = { ...compatOptions, transformOptions: copyOptions };
|
|
97
|
+
}
|
|
104
98
|
if (templateData === undefined || typeof templateData === 'string') {
|
|
105
99
|
templateData = this._templateData(templateData);
|
|
106
100
|
}
|
|
@@ -117,16 +111,10 @@ export class FsMixin {
|
|
|
117
111
|
},
|
|
118
112
|
});
|
|
119
113
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
* @param destination - destination, absolute or relative to destinationPath().
|
|
125
|
-
* @param templateData - ejs data
|
|
126
|
-
* @param templateOptions - ejs options
|
|
127
|
-
* @param copyOptions - mem-fs-editor copy options
|
|
128
|
-
*/
|
|
129
|
-
async renderTemplateAsync(source = '', destination = source, templateData, copyOptions) {
|
|
114
|
+
async renderTemplateAsync(source = '', destination = source, templateData, copyOptions, compatOptions) {
|
|
115
|
+
if (compatOptions || 'context' in (copyOptions ?? {})) {
|
|
116
|
+
copyOptions = { ...compatOptions, transformOptions: copyOptions };
|
|
117
|
+
}
|
|
130
118
|
if (templateData === undefined || typeof templateData === 'string') {
|
|
131
119
|
templateData = this._templateData(templateData);
|
|
132
120
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yeoman-generator",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Rails-inspired generator system that provides scaffolding for your apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"development",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"execa": "^9.6.1",
|
|
61
61
|
"latest-version": "^9.0.0",
|
|
62
62
|
"lodash-es": "^4.17.23",
|
|
63
|
-
"mem-fs-editor": "^12.0.
|
|
63
|
+
"mem-fs-editor": "^12.0.2",
|
|
64
64
|
"minimist": "^1.2.8",
|
|
65
65
|
"read-package-up": "^12.0.0",
|
|
66
66
|
"semver": "^7.7.4",
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"typescript": "5.9.3",
|
|
92
92
|
"vitest": "^4.0.18",
|
|
93
93
|
"yeoman-assert": "^3.1.1",
|
|
94
|
-
"yeoman-environment": "^
|
|
95
|
-
"yeoman-test": "^11.
|
|
94
|
+
"yeoman-environment": "^6.0.0",
|
|
95
|
+
"yeoman-test": "^11.3.1"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@types/node": ">=20.19.35",
|