Skip to content

Commit

Permalink
Update typings field in package.json to use generated type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed Mar 31, 2021
1 parent 4ce9062 commit bab3e96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
"description": "Primer react components",
"main": "lib/index.js",
"module": "lib-esm/index.js",
"typings": "index.d.ts",
"typings": "lib/index.d.ts",
"scripts": {
"start": "cd docs && yarn run develop",
"predist": "rm -rf dist & rm -rf lib & rm -rf lib-esm",
"dist": "concurrently yarn:dist:*",
"dist:rollup": "rm -rf dist && cross-env NODE_ENV=production rollup -c",
"dist:transpile:cjs": "rm -rf lib && cross-env BABEL_MODULE=commonjs babel src --out-dir lib --extensions '.js,.ts,.jsx,.tsx'",
"dist:transpile:esm": "rm -rf lib-esm && babel src --out-dir lib-esm --extensions '.js,.ts,.jsx,.tsx'",
"dist:types": "rm -rf types && tsc",
"dist:rollup": "cross-env NODE_ENV=production rollup -c",
"dist:transpile:cjs": "cross-env BABEL_MODULE=commonjs babel src --out-dir lib --extensions '.js,.ts,.jsx,.tsx'",
"dist:transpile:esm": "babel src --out-dir lib-esm --extensions '.js,.ts,.jsx,.tsx'",
"dist:types": "tsc",
"lint": "eslint '**/*.{js,ts,tsx}'",
"lint:fix": "eslint '**/*.{js,ts,tsx}' --fix",
"test": "jest -- src",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"checkJs": false,
"jsx": "preserve",
"declaration": true,
"outDir": "./types",
"outDir": "./lib",
"emitDeclarationOnly": true,
"strict": true,
"moduleResolution": "node",
Expand Down

0 comments on commit bab3e96

Please sign in to comment.