Skip to content

Commit

Permalink
fix: package type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed May 12, 2024
1 parent 51fc63a commit 9079a2c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 26 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
root: true,
extends: ["@antfu", "plugin:prettier/recommended"],
rules: {
"jsonc/indent": ["error", "tab"],
"@typescript-eslint/consistent-type-imports": [
"error",
{
Expand Down
54 changes: 28 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
{
"name": "akte",
"type": "module",
"version": "0.4.1",
"description": "A minimal static site (and file) generator",
"keywords": [
"typescript",
"akte"
],
"author": "Lucie Haberer <[email protected]> (https://lihbr.com)",
"license": "MIT",
"repository": {
"type": "git",
"url": "ssh://[email protected]/lihbr/akte.git"
},
"license": "MIT",
"author": "Lucie Haberer <[email protected]> (https://lihbr.com)",
"type": "module",
"keywords": [
"typescript",
"akte"
],
"sideEffects": false,
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js"
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./vite": {
"require": "./dist/vite.cjs",
"import": "./dist/vite.js"
"types": "./dist/vite/index.d.ts",
"import": "./dist/vite.js",
"require": "./dist/vite.cjs"
},
"./package.json": "./package.json"
},
Expand All @@ -42,6 +44,9 @@
"dist",
"src"
],
"engines": {
"node": ">=16.13.0"
},
"scripts": {
"build": "vite build",
"dev": "vite build --watch",
Expand All @@ -58,6 +63,18 @@
"size": "size-limit",
"test": "npm run lint && npm run types && npm run unit && npm run build && npm run size"
},
"peerDependencies": {
"html-minifier-terser": "^7.0.0",
"vite": ">=4.0.0"
},
"peerDependenciesMeta": {
"html-minifier-terser": {
"optional": true
},
"vite": {
"optional": true
}
},
"dependencies": {
"debug": "^4.3.4",
"http-proxy": "^1.18.1",
Expand All @@ -84,27 +101,12 @@
"vite-plugin-sdk": "^0.1.2",
"vitest": "^1.6.0"
},
"peerDependencies": {
"html-minifier-terser": "^7.0.0",
"vite": ">=4.0.0"
},
"peerDependenciesMeta": {
"html-minifier-terser": {
"optional": true
},
"vite": {
"optional": true
}
},
"workspaces": [
".",
"docs",
"playground",
"examples/*/*"
],
"engines": {
"node": ">=16.13.0"
},
"publishConfig": {
"access": "public"
}
Expand Down

0 comments on commit 9079a2c

Please sign in to comment.