@mmb-digital/design-system-web 0.1.347 → 0.1.348-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rollup.config.js DELETED
@@ -1,58 +0,0 @@
1
- import alias from '@rollup/plugin-alias';
2
- import babel from '@rollup/plugin-babel';
3
- import commonjs from '@rollup/plugin-commonjs';
4
- import json from '@rollup/plugin-json';
5
- import resolve from '@rollup/plugin-node-resolve';
6
- import terser from '@rollup/plugin-terser';
7
- import path from 'node:path';
8
- import { dts } from 'rollup-plugin-dts';
9
-
10
- import packageJson from './package.json' with { type: 'json' };
11
-
12
- const packageJsonDependencies = [...Object.keys(packageJson.peerDependencies), ...Object.keys(packageJson.dependencies)];
13
-
14
- const external = (source) => packageJsonDependencies.some((dependency) => source === dependency || source.startsWith(`${dependency}/`));
15
-
16
- const rollupConfig = [
17
- {
18
- input: 'src/index.ts',
19
- output: [
20
- {
21
- file: packageJson.main,
22
- format: 'cjs',
23
- interop: 'auto',
24
- sourcemap: true,
25
- },
26
- {
27
- file: packageJson.module,
28
- format: 'esm',
29
- sourcemap: true,
30
- },
31
- ],
32
- plugins: [
33
- alias({
34
- entries: [{ find: '@', replacement: path.resolve('src') }],
35
- }),
36
- resolve({
37
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
38
- }),
39
- commonjs(),
40
- babel({
41
- babelHelpers: 'bundled',
42
- exclude: 'node_modules/**',
43
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
44
- }),
45
- json(),
46
- terser(),
47
- ],
48
- external: external,
49
- },
50
- {
51
- input: './src/index.ts',
52
- output: [{ file: 'dist/index.d.ts', format: 'es' }],
53
- external: external,
54
- plugins: [dts({ tsconfig: './tsconfig.app.json' })],
55
- },
56
- ];
57
-
58
- export default rollupConfig;
package/tsconfig.app.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "./tsconfig.base.json",
3
- "compilerOptions": {
4
- "composite": true,
5
- "jsx": "react-jsx",
6
- "lib": ["ES2023", "DOM", "DOM.Iterable"],
7
- "target": "ES2020",
8
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
9
- "types": ["jest"]
10
- },
11
- "include": [".storybook/preview.tsx", "src"]
12
- }
@@ -1,18 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "esModuleInterop": true,
4
- "isolatedModules": true,
5
- "module": "ESNext",
6
- "moduleDetection": "force",
7
- "moduleResolution": "bundler",
8
- "noEmit": true,
9
- "noFallthroughCasesInSwitch": true,
10
- "noUncheckedSideEffectImports": true,
11
- "paths": {
12
- "@/*": ["./src/*"]
13
- },
14
- "resolveJsonModule": true,
15
- "skipLibCheck": true,
16
- "strict": true
17
- }
18
- }
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "./tsconfig.base.json",
3
- "compilerOptions": {
4
- "composite": true,
5
- "erasableSyntaxOnly": true,
6
- "lib": ["ES2023"],
7
- "target": "ES2023",
8
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
9
- "types": ["node"],
10
- "verbatimModuleSyntax": true
11
- },
12
- "include": [".storybook/main.ts", "jest.config.ts"]
13
- }