version.ts 495 B

1234567891011121314151617
  1. /* eslint-disable @typescript-eslint/no-var-requires */
  2. /**
  3. * @description
  4. * A constant which holds the current version of the Vendure core. You can use
  5. * this when your code needs to know the version of Vendure which is running.
  6. *
  7. * @example
  8. * ```ts
  9. * import { VENDURE_VERSION } from '\@vendure/core';
  10. *
  11. * console.log('Vendure version:', VENDURE_VERSION);
  12. * ```
  13. *
  14. * @docsCategory common
  15. * @since 2.0.0
  16. */
  17. export const VENDURE_VERSION: string = require('../package.json').version;