Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
git restore --staged packages/components/core/version.ts
yarn lint-staged
6 changes: 4 additions & 2 deletions apps/docs/src/app/version.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Version } from '@angular/core';
import { VERSION } from '@koobiq/components/core';

export const docsKoobiqVersion = VERSION.full.match(/(\d+\.\d+\.\d+(?:[^\+]*))/)![1];
export const docsKoobiqVersionFull = VERSION;
const version = VERSION.full === '{{VERSION}}' ? new Version('0.0.0-dev') : VERSION;

export const docsKoobiqVersion = version.full.match(/(\d+\.\d+\.\d+(?:[^\+]*))/)![1];
3 changes: 2 additions & 1 deletion tools/builders/packager/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { promises as fs, writeFileSync } from 'fs';
import { dirname, join, resolve } from 'path';
import { IPackagerOptions } from './schema';

const isCI = !!process.env.CI;
const packageVersionFilePath = './packages/components/core/version.ts';

export async function packager(options: IPackagerOptions, context: BuilderContext): Promise<BuilderOutput> {
Expand All @@ -18,7 +19,7 @@ export async function packager(options: IPackagerOptions, context: BuilderContex
project
};

await fillKoobiqVersion(project);
if (isCI) await fillKoobiqVersion(project);

let ngPackagrBuilderOptions: { project: string };

Expand Down