Skip to content

Commit fcae90d

Browse files
committed
added build options to the package
1 parent 2ae5a98 commit fcae90d

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

package.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
{
22
"name": "lit-functions",
33
"version": "1.0.0",
4-
"main": "index.js",
4+
"description": "Functional components for lit-elements.",
5+
"main": "dist/index.js",
6+
"module": "dist/index.js",
7+
"types": "dist/index.d.ts",
58
"license": "MIT",
69
"private": true,
710
"workspaces": [
811
"ts-component-tests"
912
],
13+
"homepage": "https://github.com/icsaba/lit-functions",
14+
"repository": "https://github.com/icsaba/lit-functions.git",
15+
"files": [
16+
"dist"
17+
],
1018
"scripts": {
1119
"start:app:ts": "yarn workspace ts-component-tests dev",
1220
"test:unit": "vitest --environment=jsdom",
@@ -20,5 +28,12 @@
2028
"jsdom": "^24.1.0",
2129
"typescript": "^5.4.5",
2230
"vitest": "^1.6.0"
23-
}
31+
},
32+
"keywords": [
33+
"webcomponents",
34+
"lit-element",
35+
"lit-hooks",
36+
"lit-functions",
37+
"lit function components"
38+
]
2439
}

tsconfig.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@
66
"module": "ESNext",
77
"lib": ["ES2020", "DOM", "DOM.Iterable"],
88
"skipLibCheck": true,
9+
"esModuleInterop": true,
10+
"declaration": true,
11+
"outDir": "dist",
12+
"rootDir": "./src",
913

1014
/* Bundler mode */
11-
"moduleResolution": "bundler",
12-
"allowImportingTsExtensions": true,
15+
"moduleResolution": "Node",
1316
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"noEmit": true,
1617

1718
/* Linting */
1819
"strict": true,
1920
"noUnusedLocals": true,
2021
"noUnusedParameters": true,
21-
"noFallthroughCasesInSwitch": true
22+
"noFallthroughCasesInSwitch": true,
2223
},
23-
"include": ["src"]
24+
"include": ["src/**/*"],
25+
"exclude": ["node_modules", "**/*.spec.ts", "ts-component-tests"]
2426
}

0 commit comments

Comments
 (0)