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
All checks were successful
armco-org/icon/pipeline/head This commit looks good
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user