Skip to content

Commit 34bdfa3

Browse files
committed
refactor: update .gitignore and eslint config to include internalTests, modify build script, and change module type in tsconfig
1 parent 5ae2491 commit 34bdfa3

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ test.js
99
test.mjs
1010
test.html
1111
test.cjs
12+
internalTests/

eslint.config.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default tseslint.config(
1818
"dist/",
1919
"tests/generateFakeImage.js",
2020
"types/",
21+
"internalTests/",
2122
],
2223
rules: {
2324
"no-else-return": ["error", { allowElseIf: false }],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build:types": "tsc -p tsconfig.types.json",
2626
"build:src": "npx tsup index.ts --format esm --legacy-output",
2727
"build:browser": "webpack",
28-
"build": "yarn build:types && yarn build:browser",
28+
"build": "rm -rf dist && rm -rf types && yarn build:types && yarn build:browser",
2929
"lint": "eslint src/**/*.ts tests/**/*.ts",
3030
"lint:fix": "yarn lint --fix",
3131
"prettier": "prettier --write '**/*.{ts,js}'",

tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"compilerOptions": {
33
"target": "ES2017",
4-
"module": "commonjs",
4+
"module": "ES6",
55
"outDir": "./dist",
66
"esModuleInterop": true,
77
"forceConsistentCasingInFileNames": true,
88
"strict": true,
99
"skipLibCheck": true,
1010
"strictNullChecks": true,
11-
"removeComments": true
11+
"removeComments": true,
12+
"moduleResolution": "node",
1213
},
1314
"include": ["src/**/*"]
1415
}

0 commit comments

Comments
 (0)