diff --git a/.gulp/tasks/copy-ui.ts b/.gulp/tasks/copy-ui.ts index 027fba9..b5d9ed3 100644 --- a/.gulp/tasks/copy-ui.ts +++ b/.gulp/tasks/copy-ui.ts @@ -9,11 +9,11 @@ export default gulp.task('build:copy-ui', callback => { try { ensureDir(path.resolve(PATHS.UI)); fs.copyFileSync( - path.join(PATHS.VSIX_DIR, 'webviews', 'ui', 'release-notes', 'release-notes.html'), + path.join(PATHS.EXT_DIR, 'webviews', 'ui', 'release-notes', 'release-notes.html'), path.join(PATHS.UI, 'release-notes.html') ); fs.copyFileSync( - path.join(PATHS.VSIX_DIR, 'webviews', 'ui', 'release-notes', 'style.css'), + path.join(PATHS.EXT_DIR, 'webviews', 'ui', 'release-notes', 'style.css'), path.join(PATHS.UI, 'release-notes.css') ); } catch (error) { diff --git a/extensions/consts/paths.ts b/extensions/consts/paths.ts index a4c78b7..a7027bd 100644 --- a/extensions/consts/paths.ts +++ b/extensions/consts/paths.ts @@ -9,6 +9,7 @@ export const PATHS: IPaths = { THEMES: './themes', UI: './ui', VSIX_DIR: path.join(__dirname, '../../'), + EXT_DIR: path.join(__dirname, '..') }; export default PATHS; diff --git a/extensions/interfaces/ipaths.ts b/extensions/interfaces/ipaths.ts index a8beab3..c40b089 100644 --- a/extensions/interfaces/ipaths.ts +++ b/extensions/interfaces/ipaths.ts @@ -19,6 +19,10 @@ export interface IPaths { * Extension directory */ VSIX_DIR: string; + /** + * Internal Extensions directory + */ + EXT_DIR: string; /** * UI directory */