1
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:
Jake Jarvis 2021-08-07 10:03:16 -04:00
parent 01ff103e08
commit 1ad8cf373e
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -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",