Skip to content

Commit

Permalink
(#6566) Console banner: Use version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvg committed Jul 1, 2024
1 parent 48e6aac commit 147e944
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/components/src/utils/dev.utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable no-console */

import { processEnv } from './reuse';
import { Env } from '@stencil/core';

let WINDOW: Window | null = null;
let DOCUMENT: Document | null = null;
Expand Down Expand Up @@ -139,7 +140,7 @@ export const initKoliBri = (): void => {
| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.
| |\\ \\ | '-' | | | | | | '--' / | | | |
\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'
🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | 1.7.25
🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}
`,
{
forceLog: true,
Expand Down
7 changes: 6 additions & 1 deletion packages/components/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { reactOutputTarget } from '@public-ui/stencil-react-output-target';
import { solidOutputTarget } from '@public-ui/stencil-solid-output-target';
import { vueOutputTarget } from '@public-ui/stencil-vue-output-target';

const KOLIBRI_VERSION = require('./package.json').version;

const TAGS = [
'kol-abbr',
'kol-accordion',
Expand Down Expand Up @@ -101,7 +103,7 @@ TAGS.forEach((tag) => {

async function generateCustomElementsJson(docsData: JsonDocs) {
const jsonData = {
version: require('./package.json').version,
version: KOLIBRI_VERSION,
tags: docsData.components.map((component) => ({
name: component.tag,
// path: component.filePath,
Expand Down Expand Up @@ -273,4 +275,7 @@ export const config: Config = {
after: [],
},
taskQueue: 'immediate',
env: {
kolibriVersion: KOLIBRI_VERSION,
},
};

0 comments on commit 147e944

Please sign in to comment.