Skip to content

Commit

Permalink
fix: added missing esm/index.d.ts declaration file (#70)
Browse files Browse the repository at this point in the history
fix #68
  • Loading branch information
natterstefan committed Mar 29, 2021
1 parent 56a79ff commit 56e06cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions packages/react-component-catalog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@
"lib"
],
"scripts": {
"build": " yarn run build-types && yarn run build-cjs && yarn run build-es && yarn run build-esm && yarn run build-umd",
"build-types": "yarn run build-cjs-types && yarn run build-es-types && yarn run build-esm-types",
"build": "yarn run build-cjs && yarn run build-es && yarn run build-esm && yarn run build-umd",
"build-cjs": "BABEL_ENV=cjs babel src --ignore **/*.test.tsx,**/*.test.ts --out-dir lib --extensions '.ts,.tsx'",
"build-cjs-types": "tsc -p tsconfig.build.json --outDir lib --module commonjs --target es5",
"build-es": "BABEL_ENV=es babel src --ignore **/*.test.tsx,**/*.test.ts --out-dir es --extensions '.ts,.tsx'",
"build-es-types": "tsc -p tsconfig.build.json --outDir es --module es2015 --target es2015",
"build-esm": "BABEL_ENV=esm babel src --ignore **/*.test.tsx,**/*.test.ts --out-dir esm --extensions '.ts,.tsx'",
"build-esm-types": "tsc -p tsconfig.build.json --outDir esm --module es2015 --target es5",
"build-types": "tsc -p tsconfig.build.json",
"build-umd": "BABEL_ENV=umd webpack --mode=production",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"prebuild": "rimraf dist && rimraf es && rimraf esm && rimraf lib",
"postbuild": "yarn run build-types",
"test": "tsc -p tsconfig.test.json && jest --detectOpenHandles",
"watch": "BABEL_ENV=esm babel --watch src --ignore **/@types/*,**/*.test.tsx,**/*.test.ts --out-dir esm --extensions '.ts,.tsx'",
"watch-test": "jest --watch"
Expand Down
4 changes: 3 additions & 1 deletion packages/react-component-catalog/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "esm",
"rootDir": "src",
"declaration": true,
"emitDeclarationOnly": true,
"incremental": true
"incremental": false
},
"include": ["src"],
"exclude": ["**/*.test.ts", "**/*.test.tsx", "node_modules"]
Expand Down
2 changes: 0 additions & 2 deletions packages/react-component-catalog/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
/**
* Composite is required for lernajs monorepos
* @see https://betterstack.dev/blog/lerna-typescript-monorepo/#heading-extras
Expand Down

0 comments on commit 56e06cc

Please sign in to comment.