Skip to content

Commit 7f37b5e

Browse files
committed
Declare some tools packages as ESM
1 parent 9e51cb8 commit 7f37b5e

33 files changed

+44
-39
lines changed
File renamed without changes.

tools/build-design-tokens/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "build-design-tokens",
33
"version": "0.31.25",
44
"private": true,
5-
"bin": "./index.mjs",
5+
"type": "module",
6+
"bin": "./index.js",
67
"dependencies": {
78
"stylelint": "~16.25.0",
89
"tools-utils": "workspace:~"

tools/build-icons/build.mjs renamed to tools/build-icons/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
createWoffBuffer,
99
createWoff2Buffer,
1010
createEotBuffer,
11-
} from './font.mjs';
12-
import { getMappedGlyphs } from './glyphs.mjs';
13-
import { createSvgSprite, createSvgIcons } from './svg.mjs';
11+
} from './font.js';
12+
import { getMappedGlyphs } from './glyphs.js';
13+
import { createSvgSprite, createSvgIcons } from './svg.js';
1414

1515
const filterOtherIconsOut = (icons) =>
1616
icons.filter(({ type }) => type !== 'other');

tools/build-icons/font.mjs renamed to tools/build-icons/font.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import ttf2eot from 'ttf2eot';
77
import ttf2woff from 'ttf2woff';
88
import ttf2woff2 from 'ttf2woff2';
99

10-
import { nextCharactersFor } from './glyphs.mjs';
11-
import { mirrorSvg } from './svg.mjs';
10+
import { nextCharactersFor } from './glyphs.js';
11+
import { mirrorSvg } from './svg.js';
1212

1313
const createReadableFromString = (content) => {
1414
const stream = new Readable();
File renamed without changes.

tools/build-icons/index.mjs renamed to tools/build-icons/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
buildSvgImages,
1212
buildFont,
1313
buildDefinition,
14-
} from './build.mjs';
14+
} from './build.js';
1515

1616
const fromSourceToIcon = async (path) => {
1717
const [, name, , type] = /^(.*?)(\.([a-z]+))?$/.exec(basename(path, '.svg'));

tools/build-icons/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "build-icons",
33
"version": "0.31.25",
44
"private": true,
5-
"bin": "./index.mjs",
5+
"type": "module",
6+
"bin": "./index.js",
67
"dependencies": {
78
"stylelint": "~16.25.0",
89
"svg2ttf": "~6.0.3",
File renamed without changes.
File renamed without changes.

tools/build-logo/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "build-logo",
33
"version": "0.31.25",
44
"private": true,
5-
"bin": "./index.mjs",
5+
"type": "module",
6+
"bin": "./index.js",
67
"dependencies": {
78
"react": "~18.3.1",
89
"react-dom": "~18.3.1",

0 commit comments

Comments
 (0)