build: add type declarations to package.json
MODIFY
.gitignore
.gitignore
@@ -19,3 +19,4 @@ demo/config/master.key
primer_view_components*.gem
.DS_Store
app/components/**/*.js
+app/components/**/*.d.ts

MODIFY
package.json
package.json
"description": "ViewComponents for the Primer Design System",
"main": "app/assets/javascripts/primer_view_components.js",
"module": "app/components/primer/primer.js",
+ "types": "app/components/primer/primer.d.ts",
"repository": "primer/view_components",
"keywords": [
"rails",
"url": "https://github.com/primer/view_components/issues"
},
"files": [
- "app/components/primer/*.js"
+ "app/components/primer/*.js",
+ "app/components/primer/*.d.ts"
],
"scripts": {
"prepare": "tsc && rollup -c",

MODIFY
tsconfig.json
tsconfig.json
],
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
+ "declaration": true,
+ "declarationDir": "app/components/primer/",
"strict": true,
"baseUrl": ".",
"types": []

build: add type declarations to package.json

Co-authored-by: Clay Miller <clay@smockle.com>