Skip to content

Commit

Permalink
Fix build & package
Browse files Browse the repository at this point in the history
  • Loading branch information
graphieros committed Sep 25, 2024
1 parent d5cf1b7 commit bfba337
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions copy-types.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fs.readdirSync(typesDir).forEach((file) => {
const distFile = path.join(distTypesDir, file);

fs.copyFileSync(srcFile, distFile);
fs.copyFileSync(srcFile, distFile.replace(/\.d\.ts$/, ".d.cts"));
});

console.log("Types copied successfully.");
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grid-plan",
"version": "1.1.1",
"version": "1.1.2",
"private": false,
"type": "module",
"description": "A Vue3 dynamic 2d grid component ideal to view and arrange elements on a room, datacenter or rack blueprint.",
Expand All @@ -18,22 +18,28 @@
"author": "Alec Lloyd Probert",
"repository": {
"type": "git",
"url": "https://github.com/graphieros/grid-plan"
"url": "git+https://github.com/graphieros/grid-plan.git"
},
"homepage": "https://grid-plan.graphieros.com/",
"license": "MIT",
"files": [
"dist"
],
"main": "./dist/grid-plan.umd.cjs",
"module": "./dist/grid-plan.js",
"exports": {
".": {
"import": "./dist/grid-plan.js",
"export": "./dist/grid-plan.umd.cjs",
"types": "./dist/types/grid-plan.d.ts"
"import": {
"types": "./dist/types/grid-plan.d.ts",
"default": "./dist/grid-plan.js"
},
"default": {
"types": "./dist/types/grid-plan.d.cts",
"default": "./dist/grid-plan.cjs"
}
}
},
"main": "./dist/grid-plan.cjs",
"module": "./dist/grid-plan.js",
"types": "./dist/types/grid-plan.d.ts",
"scripts": {
"clean": "node cleanup.cjs",
"dev": "node add-dev-dep.cjs && npm i && vite",
Expand Down

0 comments on commit bfba337

Please sign in to comment.