Skip to content

Commit

Permalink
Remove .mts since they are the same as .ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jan 15, 2024
1 parent 5b509cc commit 2eda592
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion js/gulp/arrow-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const arrowTask = ((cache) => memoizeTask(cache, function copyMain(target
const esnextUmdSourceMapsGlob = `${targetDir(`esnext`, `umd`)}/*.map`;
return ObservableForkJoin([
observableFromStreams(gulp.src(dtsGlob), gulp.dest(out)), // copy d.ts files
observableFromStreams(gulp.src(dtsGlob), gulpRename((p) => { p.extname = '.mts'; }), gulp.dest(out)), // copy d.ts files as esm
observableFromStreams(gulp.src(cjsGlob), gulp.dest(out)), // copy es2015 cjs files
observableFromStreams(gulp.src(cjsSourceMapsGlob), gulp.dest(out)), // copy es2015 cjs sourcemaps
observableFromStreams(gulp.src(esmSourceMapsGlob), gulp.dest(out)), // copy es2015 esm sourcemaps
Expand Down
6 changes: 3 additions & 3 deletions js/gulp/package-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const createMainPackageJson = (target, format) => (orig) => ({
'.': {
node: {
import: {
types: `./${mainExport}.node.d.mts`,
types: `./${mainExport}.node.d.ts`,
default: `./${mainExport}.node.mjs`,
},
require: {
Expand All @@ -70,7 +70,7 @@ const createMainPackageJson = (target, format) => (orig) => ({
},
},
import: {
types: `./${mainExport}.dom.d.mts`,
types: `./${mainExport}.dom.d.ts`,
default: `./${mainExport}.dom.mjs`,
},
require: {
Expand All @@ -80,7 +80,7 @@ const createMainPackageJson = (target, format) => (orig) => ({
},
'./*': {
import: {
types: `./*.d.mts`,
types: `./*.d.ts`,
default: `./*.mjs`,
},
require: {
Expand Down

0 comments on commit 2eda592

Please sign in to comment.