@politiet/sheriff-web-components 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@politiet/sheriff-web-components",
3
- "version": "2.3.0",
3
+ "version": "2.4.1",
4
4
  "description": "Sheriff Design System Web Components Library",
5
+ "author": "Politiets IT-enhet",
6
+ "license": "ISC",
5
7
  "main": "dist/index.js",
6
8
  "module": "dist/index.js",
7
9
  "type": "module",
8
10
  "types": "dist/index.d.ts",
11
+ "web-types": "web-types.json",
12
+ "customElements": "custom-elements.json",
9
13
  "files": [
10
- "./dist/"
14
+ "dist",
15
+ "web-types.json",
16
+ "custom-elements.json"
11
17
  ],
12
18
  "exports": {
13
19
  ".": {
@@ -128,7 +134,10 @@
128
134
  },
129
135
  "scripts": {
130
136
  "tidy-frameworks": "node ../../../scripts/delete-filetypes-from-folder.js --folder ./dist/frameworks --filetypes js,js.map",
131
- "build": "tsc && npm run tidy-frameworks"
137
+ "build": "tsc && npm run tidy-frameworks && npm run build:metadata",
138
+ "build:web-types": "wca-webtypes analyze \"src/sds-*/**/*.ts\" --format webtypes --visibility public --outFile \"web-types.json\"",
139
+ "build:cem": "cem analyze --config custom-elements-manifest.config.mjs --outdir .",
140
+ "build:metadata": "npm run build:web-types && npm run build:cem"
132
141
  },
133
142
  "dependencies": {
134
143
  "lit": "^3.3.1"
@@ -138,8 +147,23 @@
138
147
  "@politiet/sheriff-icons": "^2.0.2"
139
148
  },
140
149
  "peerDependencies": {
141
- "@politiet/sheriff-css-framework": "^2.1.2"
150
+ "@politiet/sheriff-css-framework": "^2.2.0",
151
+ "typescript": ">=3.8.0"
142
152
  },
143
- "author": "Politiets IT-enhet",
144
- "license": "ISC"
153
+ "peerDependenciesMeta": {
154
+ "typescript": {
155
+ "optional": true
156
+ }
157
+ },
158
+ "devDependencies": {
159
+ "@custom-elements-manifest/analyzer": "^0.11.0",
160
+ "lit-web-types": "^0.1.5",
161
+ "web-component-analyzer-webtypes": "^2.0.12"
162
+ },
163
+ "wca": {
164
+ "webtypesConfig": {
165
+ "framework": "web-components",
166
+ "description-markup": "markdown"
167
+ }
168
+ }
145
169
  }