Skip to content

Commit

Permalink
fix(package.json): revert exports feature
Browse files Browse the repository at this point in the history
re #112
  • Loading branch information
larrybotha committed Mar 21, 2021
1 parent d634b98 commit 1fe5480
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
21 changes: 4 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,18 @@
"format": "prettier --write lib/**/*.{js,svelte}",
"commit": "git-cz"
},
"files": [
"build/*",
"lib/*"
],
"files": ["build/*", "lib/*"],
"svelte": "./lib/index.js",
"author": "Tjin Au Yeung",
"browserslist": [
"last 1 chrome versions"
],
"keywords": [
"svelte",
"forms",
"validation",
"form-validation"
],
"browserslist": ["last 1 chrome versions"],
"keywords": ["svelte", "forms", "validation", "form-validation"],
"repository": {
"type": "git",
"url": "https://github.com/tjinauyeung/svelte-forms-lib"
},
"homepage": "https://svelte-forms-lib-sapper-docs.now.sh",
"main": "./build/index.js",
"module": "./build/esm/index.js",
"exports": {
".": "./build/esm/index.js"
},
"module": "./build/index.mjs",
"license": "MIT",
"dependencies": {
"dequal": "^2.0.2"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
input: './lib/index.js',
output: [
{
file: `./build/esm/index.js`,
file: `./build/index.mjs`,
format: 'esm',
paths: (id) => id.startsWith('svelte/') && `${id.replace('svelte', '.')}`,
},
Expand Down

0 comments on commit 1fe5480

Please sign in to comment.