Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
update peerdependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
luongngocminh committed Dec 13, 2023
1 parent 1ea357b commit 0497375
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 16 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
"@types/eslint": "^8.44.3",
"@types/jest": "^29.5.5",
"@types/prettier": "^3.0.0",
"@types/react": "^18.2.41",
"@types/react": ">=16",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"react": ">=16",
"rollup": "^3.29.4",
"rollup-plugin-typescript2": "^0.36.0",
"ts-jest": "^29.1.1",
Expand Down Expand Up @@ -70,6 +71,7 @@
"homepage": "https://github.com/8xff/media-sdk-react#readme",
"peerDependencies": {
"@8xff/atm0s-media-js": "0.1.3-alpha.3",
"react": ">=15"
"@types/react": ">=16",
"react": ">=16"
}
}
27 changes: 13 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,51 @@ const options = {
createOutputOptions({
file: './dist/index.js',
format: 'commonjs',
globals: {
'react': 'React',
'@8xff/atm0s-media-js': 'Atm0s',
},
}),
createOutputOptions({
file: './dist/index.cjs',
format: 'commonjs',
globals: {
'react': 'React',
'@8xff/atm0s-media-js': 'Atm0s',
},
}),
createOutputOptions({
file: './dist/index.mjs',
format: 'esm',
globals: {
'react': 'React',
'@8xff/atm0s-media-js': 'Atm0s',
},
}),
createOutputOptions({
file: './dist/index.esm.js',
format: 'esm',
globals: {
'react': 'React',
'@8xff/atm0s-media-js': 'Atm0s',
},
}),
createOutputOptions({
file: './dist/index.umd.js',
format: 'umd',
globals: {
'react': 'React',
'@8xff/atm0s-media-js': 'Atm0s',
},
}),
createOutputOptions({
file: './dist/index.umd.min.js',
format: 'umd',
plugins: [terser()],
globals: {
'react': 'React',
'@8xff/atm0s-media-js': 'Atm0s',
},
}),
],
plugins: [
Expand Down

0 comments on commit 0497375

Please sign in to comment.