Skip to content

Commit 830099f

Browse files
authored
Migrate to ESM (#444)
1 parent 8db161a commit 830099f

9 files changed

+1555
-18
lines changed

.eslintrc.js renamed to .eslintrc.cjs

+8
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ module.exports = {
1414
env: {
1515
browser: true,
1616
},
17+
overrides: [
18+
{
19+
files: ['jest.config.mjs'],
20+
rules: {
21+
'import/no-default-export': 'off',
22+
},
23+
},
24+
],
1725
};

.github/workflows/deploy-published-releases.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
3939
- name: Prepare release
4040
run: |-
41-
cp package.json LICENSE README.md build/
41+
cp LICENSE README.md build/
4242
cd build
4343
find . -type f -path '*/*\.js.map' -exec sed -i -e "s~../src~src~" {} +
4444
sed -i -e "s~\"version\": \"0.0.0-dev\"~\"version\": \"${GITHUB_REF##*/}\"~" package.json

.github/workflows/pr-preview.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Prepare release
3737
run: |-
38-
cp package.json LICENSE README.md build/
38+
cp LICENSE README.md build/
3939
cd build
4040
find . -type f -path '*/*\.js.map' -exec sed -i -e "s~../src~src~" {} +
4141
sed -i -e "s~<@version@>~0.0.0-dev~" constants.*

jest.config.js renamed to jest.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @type {import('ts-jest').JestConfigWithTsJest} */
2-
module.exports = {
2+
export default {
33
testEnvironment: 'jsdom',
44
preset: 'ts-jest',
55
testMatch: ['<rootDir>/test/**/*.test.ts'],

0 commit comments

Comments
 (0)