Skip to content

Commit

Permalink
Fix packaging of the new escaper classes (#74)
Browse files Browse the repository at this point in the history
- weren't processed properly with babel
- weren't included as part of the package
- escaperFactory wasn't exported from the index.js
  • Loading branch information
ehoogerbeets authored Mar 6, 2025
1 parent fb2da32 commit 6f0fcdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/ilib-tools-common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function(grunt) {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'src/*.js',
src: 'src/**/*.js',
dest: 'lib/'
}
},
Expand All @@ -54,7 +54,7 @@ module.exports = function(grunt) {
files: [{
expand: true,
cwd: 'src',
src: ['*.js'],
src: ['**/*.js'],
dest: 'lib/',
ext: '.js'
}]
Expand Down
4 changes: 3 additions & 1 deletion packages/ilib-tools-common/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import TranslationVariant from './TranslationVariant.js';
import Location from './Location.js';
import walk from './DirectoryWalk.js';
import {convertPluralResToICU, convertICUToPluralRes} from './ResourceConvert.js';
import escaperFactory from './EscaperFactory.js';

import {
formatPath,
Expand Down Expand Up @@ -70,5 +71,6 @@ export {
Location,
walk,
convertPluralResToICU,
convertICUToPluralRes
convertICUToPluralRes,
escaperFactory
};

0 comments on commit 6f0fcdd

Please sign in to comment.