Skip to content

Commit 1fe5480

Browse files
author
Larry Botha
committed
fix(package.json): revert exports feature
re tjinauyeung#112
1 parent d634b98 commit 1fe5480

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

package.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,18 @@
1414
"format": "prettier --write lib/**/*.{js,svelte}",
1515
"commit": "git-cz"
1616
},
17-
"files": [
18-
"build/*",
19-
"lib/*"
20-
],
17+
"files": ["build/*", "lib/*"],
2118
"svelte": "./lib/index.js",
2219
"author": "Tjin Au Yeung",
23-
"browserslist": [
24-
"last 1 chrome versions"
25-
],
26-
"keywords": [
27-
"svelte",
28-
"forms",
29-
"validation",
30-
"form-validation"
31-
],
20+
"browserslist": ["last 1 chrome versions"],
21+
"keywords": ["svelte", "forms", "validation", "form-validation"],
3222
"repository": {
3323
"type": "git",
3424
"url": "https://github.com/tjinauyeung/svelte-forms-lib"
3525
},
3626
"homepage": "https://svelte-forms-lib-sapper-docs.now.sh",
3727
"main": "./build/index.js",
38-
"module": "./build/esm/index.js",
39-
"exports": {
40-
".": "./build/esm/index.js"
41-
},
28+
"module": "./build/index.mjs",
4229
"license": "MIT",
4330
"dependencies": {
4431
"dequal": "^2.0.2"

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
input: './lib/index.js',
1313
output: [
1414
{
15-
file: `./build/esm/index.js`,
15+
file: `./build/index.mjs`,
1616
format: 'esm',
1717
paths: (id) => id.startsWith('svelte/') && `${id.replace('svelte', '.')}`,
1818
},

0 commit comments

Comments
 (0)