Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
RabahZeineddine committed Jul 13, 2024
1 parent 673e6dd commit ca374f8
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 7 deletions.
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
"name": "@ra-libs/react",
"version": "2.0.0",
"description": "React admin front components and utils",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"types": "./esm/index.d.ts",
"files": [
"dist",
"LICENSE",
"README.md"
],
"scripts": {
"prepare": "pnpm build",
"prebuild": "rm -rf dist",
"build": "pnpm build:esm && pnpm build:cjs",
"prebuild": "rimraf dist",
"build": "pnpm prebuild & pnpm build:esm && pnpm build:cjs && pnpm postbuild",
"postbuild": "copyfiles package.json README.md ./dist",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"format": "prettier --write \"src/**/*.ts\"",
Expand Down Expand Up @@ -51,6 +52,7 @@
"@types/react": "^18.3.3",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"copyfiles": "^2.4.1",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
Expand All @@ -66,6 +68,7 @@
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rimraf": "^6.0.1",
"semantic-release": "^24.0.0",
"ts-jest": "^29.2.2",
"typescript": "^5.5.3",
Expand Down Expand Up @@ -109,4 +112,4 @@
"url": "https://github.com/ra-libs/react/issues"
},
"homepage": "https://github.com/ra-libs/react#readme"
}
}
Loading

0 comments on commit ca374f8

Please sign in to comment.