Added index.js to build output, exposing through index instead of Icon now
All checks were successful
armco-org/icon/pipeline/head This commit looks good

This commit is contained in:
2025-11-12 01:26:40 +05:30
parent da26efed92
commit 5ed23f77c8
3 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import { fileURLToPath } from "url"
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
const exclusions = ["Icon.js", "helper2.js"]
const exclusions = ["index.js", "Icon.js", "helper2.js"]
async function generateModule(fileName, isDev) {
if (!exclusions.includes(fileName) && fileName.endsWith(".js")) {

View File

@@ -1,6 +1,6 @@
{
"name": "@armco/icon",
"version": "0.0.11",
"version": "0.0.12",
"type": "module",
"main": "build/cjs/index.js",
"module": "build/es/index.js",

View File

@@ -19,6 +19,7 @@ export default defineConfig({
outDir: "build",
lib: {
entry: [
resolve(__dirname, "src/index.ts"),
resolve(__dirname, "src/helper.ts"),
resolve(__dirname, "src/enums.ts"),
resolve(__dirname, "src/Icon.tsx"),