mushroom-cli 2.0.0-alpha.3 → 2.0.0-alpha.4

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/README.md CHANGED
@@ -130,6 +130,13 @@ npx mushroom-cli parameters --no-check-update
130
130
 
131
131
  ## Version
132
132
 
133
+ ### 2.0.0-alpha.4
134
+
135
+ Bug fixes:
136
+
137
+ - gen ts-driver: fix the swapped extension exports. The `auth` feature now exports `Auth: AuthExtension` and the
138
+ `file` feature now exports `File: FileExtension` (previously the two were swapped)
139
+
133
140
  ### 2.0.0-alpha.3
134
141
 
135
142
  New features:
@@ -247,13 +247,13 @@ export function genTypescriptDriverString(aliasProject, source) {
247
247
  if (Array.isArray(aliasProject.features)) {
248
248
  if (aliasProject.features.includes('auth')) {
249
249
  extensionsImportLines.push('import * as AuthExtension from "mushroomjs-auth";');
250
- extensionsExportLines.push('File: FileExtension');
250
+ extensionsExportLines.push('Auth: AuthExtension');
251
251
  extensionsTypes.push('AuthExtension.IMushroomAuth & ');
252
252
  extensionsCodeLines.push('AuthExtension.useAuth(AuthExtension.AuthLocalStorage, mushroom);');
253
253
  }
254
254
  if (aliasProject.features.includes('file')) {
255
255
  extensionsImportLines.push('import * as FileExtension from "mushroomjs-file";');
256
- extensionsExportLines.push('Auth: AuthExtension');
256
+ extensionsExportLines.push('File: FileExtension');
257
257
  extensionsTypes.push('FileExtension.IMushroomFile & ');
258
258
  extensionsCodeLines.push('FileExtension.useFile(mushroom);');
259
259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mushroom-cli",
3
- "version": "2.0.0-alpha.3",
3
+ "version": "2.0.0-alpha.4",
4
4
  "description": "Mushroom CLI",
5
5
  "type": "module",
6
6
  "scripts": {