Skip to content

Commit

Permalink
Fix (dependency-checker): Treat dependencies in the dist folder as …
Browse files Browse the repository at this point in the history
…production dependencies.
  • Loading branch information
filipsobol committed Jul 2, 2024
1 parent 9c5adde commit 1a65fcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { Plugin } from 'rollup';
import { removeWhitespace } from '../utils';

const TYPINGS = removeWhitespace( `
import type { Translations } from 'ckeditor5';
import type { Translations } from '@ckeditor/ckeditor5-utils';
declare const translations: Translations;
export default translations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function checkDependenciesInPackage( packagePath, options ) {
'**/*.ts': depCheck.parser.typescript,
'**/*.vue': depCheck.parser.vue
},
ignorePatterns: [ 'docs', 'build', 'dist' ],
ignorePatterns: [ 'docs', 'build' ],
ignoreMatches: [ 'eslint*', 'webpack*', 'husky', 'lint-staged' ]
};

Expand Down Expand Up @@ -383,7 +383,7 @@ async function isDevDependency( packageName, absolutePaths ) {

for ( const absolutePath of absolutePaths ) {
// Only imports in files in src/ or theme/ could be non dev dependency.
if ( !absolutePath.match( /[/\\](src|theme)[/\\]/ ) ) {
if ( !absolutePath.match( /[/\\](src|theme|dist)[/\\]/ ) ) {
continue;
}

Expand Down

0 comments on commit 1a65fcf

Please sign in to comment.