Skip to content

Commit 1bfa22a

Browse files
committed
refactor!: remove native module
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent abc02cf commit 1bfa22a

File tree

5 files changed

+6
-31
lines changed

5 files changed

+6
-31
lines changed

.commitlintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"exports",
2020
"github",
2121
"hybrid",
22-
"native",
2322
"patches",
2423
"pkg",
2524
"ponyfill",

package.json

+4-17
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,16 @@
3535
"import": "./dist/index.mjs",
3636
"require": "./dist/index.cjs"
3737
},
38-
"./package.json": "./package.json",
39-
"./native": {
40-
"import": "./dist/native.mjs",
41-
"require": "./dist/native.cjs"
42-
},
43-
"./ponyfill": {
44-
"import": "./dist/ponyfill.mjs",
45-
"require": "./dist/ponyfill.cjs"
46-
}
38+
"./package.json": "./package.json"
4739
},
4840
"main": "./dist/index.cjs",
4941
"module": "./dist/index.mjs",
5042
"types": "./dist/index.d.mts",
5143
"typesVersions": {
5244
"*": {
53-
"*.cjs": [
54-
"./dist/*.d.cts",
55-
"./dist/*/index.d.cts",
45+
".": [
46+
"./dist/index.d.mts",
5647
"./dist/index.d.cts"
57-
],
58-
"*": [
59-
"./dist/*.d.mts",
60-
"./dist/*/index.d.mts",
61-
"./dist/index.d.mts"
6248
]
6349
}
6450
},
@@ -169,5 +155,6 @@
169155
},
170156
"packageManager": "[email protected]",
171157
"readme": "README.md",
158+
"sideEffects": false,
172159
"tagPrefix": ""
173160
}

src/native.ts

-6
This file was deleted.

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"forceConsistentCasingInFileNames": true,
1515
"importsNotUsedAsValues": "error",
1616
"isolatedModules": false,
17-
"lib": ["es2021"],
17+
"lib": ["es2020"],
1818
"module": "esnext",
1919
"moduleDetection": "force",
2020
"moduleResolution": "node",

vitest.config.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ const config: UserConfigExport = defineConfig((): UserConfig => {
5252
coverage: {
5353
all: true,
5454
clean: true,
55-
exclude: [
56-
'**/__mocks__/**',
57-
'**/__tests__/**',
58-
'**/index.ts',
59-
'src/native.ts'
60-
],
55+
exclude: ['**/__mocks__/**', '**/__tests__/**', '**/index.ts'],
6156
extension: ['.ts'],
6257
include: ['src'],
6358
reporter: ['json-summary', 'lcov', 'text'],

0 commit comments

Comments
 (0)