Skip to content

Commit

Permalink
Merge branch 'main' of github.com:chingu-x/chingu-dashboard-components
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Y-Ko committed Dec 5, 2024
2 parents b079921 + d4cf8cf commit 43ada35
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ jobs:
name: Release
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [0.5.5](https://github.com/chingu-x/chingu-dashboard-components/compare/v0.5.4...v0.5.5) (2024-12-04)


### Bug Fixes

* final test ([0cb1e6a](https://github.com/chingu-x/chingu-dashboard-components/commit/0cb1e6a7489e45be42f0f4a1501935fe7a176e17))

## [0.5.4](https://github.com/chingu-x/chingu-dashboard-components/compare/v0.5.3...v0.5.4) (2024-12-04)


Expand Down
4 changes: 0 additions & 4 deletions generate-exports.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import fs from "fs";
import path from "path";

// Define the root path of your dist and types folders
const distPath = "./dist";

// Read all directories in the components folder
const components = fs.readdirSync(distPath).filter((file) => {
return fs.statSync(path.join(distPath, file)).isDirectory();
});

// Generate exports object
const exportsObject = {
".": {
import: "./dist/index.js",
Expand All @@ -29,7 +26,6 @@ components.forEach((component) => {
};
});

// Write the generated exports to the package.json file
const packageJson = JSON.parse(fs.readFileSync("./package.json", "utf-8"));
packageJson.exports = exportsObject;

Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"name": "@chingu-x/components",
"version": "0.5.4",
"version": "0.5.5",
"description": "Component library for Chingu dashboard projects",
"module": "dist/index.js",
"type": "module",
"types": "dist/types/index.d.ts",
"files": [
"dist/**/*",
"tailwind.config.js",
"src/styles.css"
"dist"
],
"style": "src/styles.css",
"scripts": {
"dev": "vite",
"build": "vite build && tsc && node copy-types.js",
Expand Down Expand Up @@ -85,4 +82,4 @@
"types": "./dist/types/types/index.d.ts"
}
}
}
}
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@
"jsx": "react-jsx",
"declaration": true,
"declarationDir": "dist/types",
"emitDeclarationOnly": false,
"outDir": "dist",
"esModuleInterop": true,
"moduleResolution": "node",
"skipLibCheck": true,
"strict": true,
"rootDir": "./src"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/global.d.ts"
],
"exclude": ["node_modules", "dist"]
}

0 comments on commit 43ada35

Please sign in to comment.