@indico-data/design-system 1.0.3 → 1.0.4
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/lib/index.esm.js +57535 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +57561 -0
- package/lib/index.js.map +1 -0
- package/package.json +15 -2
- package/rollup.config.mjs +46 -0
- package/webpack.config.js +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indico-data/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"module": "lib/index.esm.js",
|
|
9
|
+
"types": "lib/index.d.ts",
|
|
7
10
|
"scripts": {
|
|
8
11
|
"dev": "storybook dev -p 6006",
|
|
9
|
-
"build": "
|
|
12
|
+
"build": "rollup -c",
|
|
13
|
+
"build storybook": "storybook build",
|
|
10
14
|
"test-storybook": "test-storybook",
|
|
11
15
|
"prepare": "husky install"
|
|
12
16
|
},
|
|
@@ -44,6 +48,9 @@
|
|
|
44
48
|
"webpack-dev-server": "^4.15.1"
|
|
45
49
|
},
|
|
46
50
|
"devDependencies": {
|
|
51
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
52
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
53
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
47
54
|
"@storybook/addon-a11y": "^7.5.3",
|
|
48
55
|
"@storybook/addon-docs": "^7.5.3",
|
|
49
56
|
"@storybook/addon-essentials": "^7.5.3",
|
|
@@ -66,8 +73,14 @@
|
|
|
66
73
|
"eslint-plugin-react": "^7.33.2",
|
|
67
74
|
"husky": "^8.0.3",
|
|
68
75
|
"lint-staged": "^15.1.0",
|
|
76
|
+
"postcss": "^8.4.31",
|
|
69
77
|
"prettier": "3.1.0",
|
|
78
|
+
"rollup": "^4.6.1",
|
|
79
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
80
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
81
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
70
82
|
"storybook": "^7.5.3",
|
|
83
|
+
"ts-loader": "^9.5.1",
|
|
71
84
|
"tsconfig-paths-webpack-plugin": "^4.1.0"
|
|
72
85
|
},
|
|
73
86
|
"resolutions": {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
|
|
2
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
3
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
4
|
+
import typescript from '@rollup/plugin-typescript';
|
|
5
|
+
import postcss from 'rollup-plugin-postcss';
|
|
6
|
+
import dts from 'rollup-plugin-dts';
|
|
7
|
+
|
|
8
|
+
// This is required to read package.json file when
|
|
9
|
+
// using Native ES modules in Node.js
|
|
10
|
+
// https://rollupjs.org/command-line-interface/#importing-package-json
|
|
11
|
+
import { createRequire } from 'node:module';
|
|
12
|
+
const requireFile = createRequire(import.meta.url);
|
|
13
|
+
const packageJson = requireFile('./package.json');
|
|
14
|
+
|
|
15
|
+
export default [
|
|
16
|
+
{
|
|
17
|
+
input: 'src/index.ts',
|
|
18
|
+
output: [
|
|
19
|
+
{
|
|
20
|
+
file: packageJson.main,
|
|
21
|
+
format: 'cjs',
|
|
22
|
+
sourcemap: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
file: packageJson.module,
|
|
26
|
+
format: 'esm',
|
|
27
|
+
sourcemap: true,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
plugins: [
|
|
31
|
+
peerDepsExternal(),
|
|
32
|
+
resolve(),
|
|
33
|
+
commonjs(),
|
|
34
|
+
typescript(),
|
|
35
|
+
postcss({
|
|
36
|
+
extensions: ['.css'],
|
|
37
|
+
}),
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
input: 'lib/index.d.ts',
|
|
42
|
+
output: [{ file: 'lib/index.d.ts', format: 'es' }],
|
|
43
|
+
plugins: [dts()],
|
|
44
|
+
external: [/\.css$/],
|
|
45
|
+
},
|
|
46
|
+
];
|
package/webpack.config.js
CHANGED