bbe104c27b
As title Fix workflow code step creation error
9 lines
337 B
TypeScript
9 lines
337 B
TypeScript
import path from 'path';
|
|
|
|
// If the code is built through the testing module, assets are not output to the dist/assets directory.
|
|
const IS_BUILT_THROUGH_TESTING_MODULE = !__dirname.includes('/dist/');
|
|
|
|
export const ASSET_PATH = IS_BUILT_THROUGH_TESTING_MODULE
|
|
? path.resolve(__dirname, `../`)
|
|
: path.resolve(__dirname, `../assets`);
|