Skip to content

Commit

Permalink
added type module
Browse files Browse the repository at this point in the history
  • Loading branch information
0xb4lint committed Oct 15, 2022
1 parent 08e470e commit 4fa605c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 14 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "vite-plugin-webfont-dl",
"version": "3.1.2",
"version": "3.1.3",
"type": "module",
"description": "Vite plugin for downloading and injecting webfonts",
"keywords": [
"vite",
Expand All @@ -12,17 +13,24 @@
"vue",
"react"
],
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/index.js",
"dist/index.mjs",
"dist/index.cjs",
"dist/index.d.ts"
],
"scripts": {
"start": "npm run build -- --watch",
"build": "tsup src/index.ts --dts --format cjs,esm",
"build": "tsup src/index.ts --dts --format cjs,esm --clean",
"lint": "tsc --noEmit --downlevelIteration && eslint \"src/**/*.ts\" --no-fix",
"lint:fix": "eslint \"src/**/*.ts\" --fix"
},
Expand Down

0 comments on commit 4fa605c

Please sign in to comment.