2024-09-11 02:37:36 +00:00
/ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright ( c ) Microsoft Corporation . All rights reserved .
* Licensed under the MIT License . See License . txt in the project root for license information .
* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- * /
2024-09-24 04:46:08 +00:00
import { createRequire } from 'node:module' ;
2025-03-01 02:01:53 +00:00
import type { IProductConfiguration } from './vs/base/common/product.js' ;
2024-09-24 04:46:08 +00:00
const require = createRequire ( import . meta . url ) ;
2024-09-11 02:37:36 +00:00
2025-03-01 02:01:53 +00:00
let productObj : Partial < IProductConfiguration > & { BUILD_INSERT_PRODUCT_CONFIGURATION? : string } = { BUILD_INSERT_PRODUCT_CONFIGURATION : 'BUILD_INSERT_PRODUCT_CONFIGURATION' } ; // DO NOT MODIFY, PATCHED DURING BUILD
2024-09-11 02:37:36 +00:00
if ( productObj [ 'BUILD_INSERT_PRODUCT_CONFIGURATION' ] ) {
productObj = require ( '../product.json' ) ; // Running out of sources
}
let pkgObj = { BUILD_INSERT_PACKAGE_CONFIGURATION : 'BUILD_INSERT_PACKAGE_CONFIGURATION' } ; // DO NOT MODIFY, PATCHED DURING BUILD
if ( pkgObj [ 'BUILD_INSERT_PACKAGE_CONFIGURATION' ] ) {
pkgObj = require ( '../package.json' ) ; // Running out of sources
}
2025-03-01 02:01:53 +00:00
export const product = productObj ;
export const pkg = pkgObj ;