Fixed exports of enums and types from Icon
All checks were successful
armco-org/icon/pipeline/head This commit looks good
All checks were successful
armco-org/icon/pipeline/head This commit looks good
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "@armco/icon",
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"type": "module",
|
||||
"main": "build/cjs/Icon.js",
|
||||
"module": "build/es/Icon.js",
|
||||
"types": "build/types/Icon.d.ts",
|
||||
"main": "build/cjs/index.js",
|
||||
"module": "build/es/index.js",
|
||||
"types": "build/types/index.d.ts",
|
||||
"scripts": {
|
||||
"dev": "vite --config vite-dev.config.ts",
|
||||
"build": "./build-tools/build.sh",
|
||||
|
||||
4
src/index.ts
Normal file
4
src/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from "./helper"
|
||||
export * from "./enums"
|
||||
export * from "./types"
|
||||
export { default } from "./Icon"
|
||||
@@ -9,7 +9,7 @@ import { externalizeDeps } from "vite-plugin-externalize-deps"
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
dts({ outDir: "build/types" }),
|
||||
dts({ outDir: "build/types", exclude: ["src/Test.tsx"] }),
|
||||
cssInjectedByJsPlugin({
|
||||
jsAssetsFilterFunction: (chunk) => chunk.fileName.includes("Icon"),
|
||||
}),
|
||||
@@ -20,6 +20,7 @@ export default defineConfig({
|
||||
lib: {
|
||||
entry: [
|
||||
resolve(__dirname, "src/helper.ts"),
|
||||
resolve(__dirname, "src/enums.ts"),
|
||||
resolve(__dirname, "src/Icon.tsx"),
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user