Skip to content

Commit

Permalink
Merge pull request #62 from shopware/ntr/fixed-pipeline
Browse files Browse the repository at this point in the history
NTR - Fixed pipeline
  • Loading branch information
cyl3x authored Jan 6, 2025
2 parents 4b81e92 + 5671051 commit 36295ad
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Resources/app/administration/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ const { join } = require('path');
// use ADMIN_PATH environment variable to change from default installation
process.env.ADMIN_PATH =
process.env.ADMIN_PATH ??
join(__dirname, '../../../../../../../src/Administration/Resources/app/administration/src');
join(__dirname, '../../../../../../../src/Administration/Resources/app/administration');

// to be compatible with the old behavior
if (process.env.ADMIN_PATH.endsWith('src')) {
process.env.ADMIN_PATH = join(process.env.ADMIN_PATH, '..');
}

const baseRules = {
'max-len': 0,
Expand Down Expand Up @@ -53,9 +58,9 @@ module.exports = {
extensions: ['.js', '.ts', '.vue', '.json', '.less', '.twig'],
alias: {
SwagPayPal: join(__dirname, 'src'),
src: process.env.ADMIN_PATH,
'@vue\/test-utils': `${process.env.ADMIN_PATH}/node_modules/@vue/test-utils`,
vue: `${process.env.ADMIN_PATH}/node_modules/@vue/compat/dist/vue.cjs.js`,
src: join(process.env.ADMIN_PATH, 'src'),
'@vue\/test-utils': `${process.env.ADMIN_PATH}/src/node_modules/@vue/test-utils`,
vue: `${process.env.ADMIN_PATH}/src/node_modules/@vue/compat/dist/vue.cjs.js`,
},
},
},
Expand Down

0 comments on commit 36295ad

Please sign in to comment.