Skip to content

Commit

Permalink
fix: remove unnecesary types
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziping Liu committed Dec 6, 2023
1 parent 7e6dc3b commit 9a25395
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-adobe-embed",
"version": "11.2.13",
"version": "11.3.0",
"homepage": "https://ziping-liu-corporation.github.io/react-adobe-embed/#/home",
"repository": {
"type": "git",
Expand Down Expand Up @@ -50,15 +50,17 @@
"module": "./lib/bundle.esm.mjs",
"main": "./lib/bundle.cjs.js",
"umd:main": "./lib/bundle.js",
"browser": "./dist/react-adobe-embed.cdn.js",
"jsdelivr": "./dist/react-adobe-embed.cdn.js",
"exports": {
".": {
"require": "./lib/bundle.cjs.js",
"import": "./lib/bundle.esm.mjs",
"umd": "./lib/bundle.js"
"umd": "./lib/bundle.js",
"default": "./lib/bundle.esm.mjs"
}
},
"types": "lib/bundle.esm.d.ts",
"types": "./lib/bundle.esm.d.ts",
"files": [
"LICENSE",
"lib",
Expand Down
8 changes: 5 additions & 3 deletions rollup.config.canary.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@ const config = {
typescript({
useTsconfigDeclarationDir: false,
sourceMap: false,
tsconfig: "./tsconfig.build.json",
tsconfigOverride: {
compilerOptions: {
outDir: "build"
},

declaration: false,
include: [
"canary/App.tsx"
"./canary/App.tsx"
],

exclude: [
"**/__tests__",
"build",
"dist",

]
],

},
}),
peerDepsExternal(),
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ const config = {

typescript({ useTsconfigDeclarationDir: true ,
exclude: [
"**/__tests__"
"**/__tests__",
"canary",
"lib",
"dist",
],
sourceMap: true,
}),
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ export default [
commonjs(),
typescript({ tsconfig: "./tsconfig.json" ,


"sourceMap": true,
exclude: [
"canary",
"**/tests/**/*",
"**/*.test.tsx",
"**/*.test.ts",
Expand Down
7 changes: 1 addition & 6 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
"webpack",
"jest",
"src/stories/**",
"canary"
],
"compilerOptions": {
"outDir": "lib",
"baseUrl": "./src"
}
]
}

3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"types",
"node_modules",
"dist",
"build"
"build",
"canary",
]
}

0 comments on commit 9a25395

Please sign in to comment.