Skip to content

Commit

Permalink
🐛 fix(react): (#1371)
Browse files Browse the repository at this point in the history
* Create PR for #1365

* change to rollup

* format files

* update base images

* update base images

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gery Hirschfeld <[email protected]>
Co-authored-by: hirsch88 <[email protected]>
  • Loading branch information
3 people committed Apr 8, 2024
1 parent 39e9175 commit 55b2d48
Show file tree
Hide file tree
Showing 16 changed files with 59 additions and 66 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-mugs-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/ds-core': patch
---

**react**: adjust released packages with rollup
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions packages/react/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"jsc": {
"target": "es5",
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"decoratorMetadata": true,
"legacyDecorator": true
},
"keepClassNames": true,
"externalHelpers": true,
"loose": true
},
"module": {
"type": "es6"
},
"sourceMaps": true,
"exclude": [
"jest.config.ts",
".*\\.spec.tsx?$",
".*\\.test.tsx?$",
"./src/jest-setup.ts$",
"./**/jest-setup.ts$",
".*.js$"
]
}
12 changes: 0 additions & 12 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,7 @@
},
"homepage": "https://design.baloise.dev",
"license": "Apache-2.0",
"files": [
"dist/"
],
"dependencies": {
"@baloise/ds-core": "16.0.3"
},
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
}
}
22 changes: 21 additions & 1 deletion packages/react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/react/src",
"projectType": "library",
"targets": {},
"targets": {
"nx-release-publish": {
"executor": "@nx/js:release-publish",
"options": {
"packageRoot": "{projectRoot}/dist"
}
},
"build": {
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "{projectRoot}/dist",
"main": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"project": "{projectRoot}/package.json",
"compiler": "swc",
"format": ["esm", "cjs"],
"external": ["react", "react-dom", "@baloise/ds-core", "@baloise/ds-core/loader"]
}
}
},
"tags": ["scope:release", "type:package"]
}
8 changes: 2 additions & 6 deletions packages/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx",
"allowJs": false,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"types": ["vite/client"]
"jsx": "react",
"importHelpers": true
},
"files": [],
"include": [],
Expand Down
4 changes: 2 additions & 2 deletions packages/react/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist/out-tsc",
"types": ["node", "@nx/react/typings/cssmodule.d.ts", "@nx/react/typings/image.d.ts", "vite/client"]
"types": ["node"]
},
"exclude": [
"**/*.spec.ts",
Expand All @@ -14,5 +14,5 @@
"**/*.spec.jsx",
"**/*.test.jsx"
],
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
"include": ["src/**/*.ts", "src/**/*.tsx"]
}
45 changes: 0 additions & 45 deletions packages/react/vite.config.ts

This file was deleted.

0 comments on commit 55b2d48

Please sign in to comment.