hisd3-ui-kit 2.0.6 → 2.0.8
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.d.ts +2 -160
- package/dist/index.js +146 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/rollup.config.mjs +45 -0
- package/tsconfig.json +2 -2
package/package.json
CHANGED
|
@@ -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
|
+
];
|
package/tsconfig.json
CHANGED
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"allowJs": true, // Allow JavaScript files to be imported into the TypeScript project
|
|
14
14
|
"resolveJsonModule": true // Allow importing JSON files as modules
|
|
15
15
|
},
|
|
16
|
-
"include": ["src"
|
|
17
|
-
"exclude": ["node_modules"] // Exclude 'node_modules' folder
|
|
16
|
+
"include": ["src"], // Add your source directories here
|
|
17
|
+
"exclude": ["node_modules", "dist"] // Exclude 'node_modules' folder
|
|
18
18
|
}
|