Skip to content

Commit 1a22830

Browse files
committed
updated to newest version
1 parent 5b24443 commit 1a22830

6 files changed

Lines changed: 19 additions & 7 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monux-cli",
3-
"version": "2.5.3",
3+
"version": "2.5.4",
44
"license": "MIT",
55
"main": "index.js",
66
"engines": {

src/commands/add/add-angular-website/add-angular-website.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export class AddAngularWebsiteCommand extends BaseAddCommand<AddAngularWebsiteCo
223223
files: [
224224
'src/main.ts',
225225
'src/main.server.ts',
226-
'server.ts'
226+
'src/server.ts'
227227
],
228228
include: [
229229
'src/**/*.spec.ts',

src/commands/add/add-angular/add-angular.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export class AddAngularCommand extends BaseAddCommand<AddAngularConfiguration> {
296296
files: [
297297
'src/main.ts',
298298
'src/main.server.ts',
299-
'server.ts'
299+
'src/server.ts'
300300
],
301301
include: [
302302
'src/**/*.spec.ts',

src/commands/add/add-zibri/add-zibri.command.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { DockerUtilities } from '../../../docker';
44
import { FsUtilities, QuestionsFor } from '../../../encapsulation';
55
import { DefaultEnvKeys, EnvUtilities } from '../../../env';
66
import { EslintUtilities } from '../../../eslint';
7+
import { TsUtilities } from '../../../ts';
78
import { TsConfigUtilities } from '../../../tsconfig';
89
import { OmitStrict } from '../../../types';
910
import { generatePlaceholderPassword, getPath, Path, toKebabCase, toPascalCase } from '../../../utilities';
@@ -197,6 +198,11 @@ export class AddZibriCommand extends BaseAddCommand<AddZibriConfiguration> {
197198
'dataSources: [DbDataSource]',
198199
`dataSources: [${toPascalCase(databaseName)}DataSource]`
199200
);
201+
await FsUtilities.replaceInFile(
202+
getPath(root, 'src', 'index.ts'),
203+
'createDefaultData(DbDataSource);',
204+
`createDefaultData(${toPascalCase(databaseName)}DataSource);`
205+
);
200206

201207
const environmentModel: Path = getPath(root, 'src', 'environment', ENVIRONMENT_MODEL_TS_FILE_NAME);
202208

@@ -289,6 +295,10 @@ export class AddZibriCommand extends BaseAddCommand<AddZibriConfiguration> {
289295
'\'zibri@zibri.de\'',
290296
`environment.${DefaultEnvKeys.defaultUserEmail(config.name)}`
291297
);
298+
await TsUtilities.addImportStatements(
299+
createDefaultDataTs,
300+
[{ defaultImport: false, element: 'environment', path: './environment/environment' }]
301+
);
292302
}
293303

294304
private async setupTsConfig(projectName: string): Promise<void> {
@@ -306,7 +316,9 @@ export class AddZibriCommand extends BaseAddCommand<AddZibriConfiguration> {
306316
sourceMap: undefined,
307317
skipLibCheck: undefined,
308318
noImplicitAny: undefined,
309-
noFallthroughCasesInSwitch: undefined
319+
noFallthroughCasesInSwitch: undefined,
320+
module: undefined,
321+
moduleResolution: undefined
310322
}
311323
}
312324
);

src/zibri/zibri.utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type ZibriCliOptions<T extends ZibriCliCommands>
3737
*/
3838
export abstract class ZibriUtilities {
3939

40-
private static readonly CLI_VERSION: string = '2.1.1';
40+
private static readonly CLI_VERSION: string = '2.1.2';
4141

4242
/**
4343
* Runs a zibri cli command inside the provided directory.

0 commit comments

Comments
 (0)