hisd3-ui-kit 2.0.6 → 2.0.7
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/dist/index.cjs.js +147 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.js +146 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/rollup.config.mjs +45 -0
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hisd3-ui-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "A UI kit for HISD3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "
|
|
7
|
+
"type": "commonjs",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "rollup -c",
|
|
10
10
|
"start": "webpack serve"
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import typescript from "@rollup/plugin-typescript";
|
|
2
|
+
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
|
3
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
4
|
+
import commonjs from "@rollup/plugin-commonjs";
|
|
5
|
+
import postcss from "rollup-plugin-postcss";
|
|
6
|
+
import terser from "@rollup/plugin-terser";
|
|
7
|
+
import dts from "rollup-plugin-dts";
|
|
8
|
+
|
|
9
|
+
const packageJson = await import("./package.json", {
|
|
10
|
+
assert: { type: "json" },
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export default [
|
|
14
|
+
{
|
|
15
|
+
input: "src/index.ts", // adjust to your actual entry point
|
|
16
|
+
output: [
|
|
17
|
+
{
|
|
18
|
+
file: "dist/index.cjs.js",
|
|
19
|
+
format: "cjs",
|
|
20
|
+
sourcemap: true,
|
|
21
|
+
exports: "auto",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
file: "dist/index.js",
|
|
25
|
+
format: "esm",
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
plugins: [
|
|
30
|
+
peerDepsExternal(),
|
|
31
|
+
resolve(),
|
|
32
|
+
commonjs(),
|
|
33
|
+
typescript({ tsconfig: "./tsconfig.json" }),
|
|
34
|
+
postcss(),
|
|
35
|
+
terser(),
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
// Type declarations
|
|
40
|
+
{
|
|
41
|
+
input: "src/index.ts",
|
|
42
|
+
output: [{ file: packageJson.types, format: "esm" }],
|
|
43
|
+
plugins: [dts()],
|
|
44
|
+
},
|
|
45
|
+
];
|