mirror of
https://github.com/jakejarvis/dark-mode.git
synced 2025-04-29 02:30:27 -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",
|
"type": "git",
|
||||||
"url": "https://github.com/jakejarvis/dark-mode.git"
|
"url": "https://github.com/jakejarvis/dark-mode.git"
|
||||||
},
|
},
|
||||||
"main": "dist/dark-mode.cjs.js",
|
"type": "module",
|
||||||
"module": "dist/dark-mode.esm.js",
|
"files": [
|
||||||
"unpkg": "dist/dark-mode.min.js",
|
"dist"
|
||||||
"types": "dist/dark-mode.d.ts",
|
],
|
||||||
|
"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": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"lint": "eslint src/**/*.js",
|
"lint": "eslint src/**/*.js",
|
||||||
@ -35,9 +44,6 @@
|
|||||||
"rollup-plugin-filesize": "^9.1.1",
|
"rollup-plugin-filesize": "^9.1.1",
|
||||||
"rollup-plugin-terser": "^7.0.2"
|
"rollup-plugin-terser": "^7.0.2"
|
||||||
},
|
},
|
||||||
"files": [
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"frontend",
|
"frontend",
|
||||||
"dark mode",
|
"dark mode",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user