From dbc9a364d2df158a9eed2717045491123b54076b Mon Sep 17 00:00:00 2001 From: Alessio Date: Thu, 30 Aug 2018 09:28:26 +0200 Subject: [PATCH] chore: Changed path to exstensions --- .gulp/tasks/copy-ui.ts | 4 ++-- extensions/consts/paths.ts | 1 + extensions/interfaces/ipaths.ts | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) 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 */