mirror of
https://github.com/jakejarvis/dark-mode.git
synced 2025-04-25 19:55:22 -04:00
add exports field to package.json to comply with skypack.dev
This commit is contained in:
parent
01ff103e08
commit
1ad8cf373e
20
package.json
20
package.json
@ -12,10 +12,19 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/jakejarvis/dark-mode.git"
|
||||
},
|
||||
"main": "dist/dark-mode.cjs.js",
|
||||
"module": "dist/dark-mode.esm.js",
|
||||
"unpkg": "dist/dark-mode.min.js",
|
||||
"types": "dist/dark-mode.d.ts",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "./dist/dark-mode.cjs.js",
|
||||
"module": "./dist/dark-mode.esm.js",
|
||||
"unpkg": "./dist/dark-mode.min.js",
|
||||
"types": "./dist/dark-mode.d.ts",
|
||||
"exports": {
|
||||
"require": "./dist/dark-mode.cjs.js",
|
||||
"import": "./dist/dark-mode.esm.js",
|
||||
"browser": "./dist/dark-mode.min.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"lint": "eslint src/**/*.js",
|
||||
@ -35,9 +44,6 @@
|
||||
"rollup-plugin-filesize": "^9.1.1",
|
||||
"rollup-plugin-terser": "^7.0.2"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"keywords": [
|
||||
"frontend",
|
||||
"dark mode",
|
||||
|
Loading…
x
Reference in New Issue
Block a user