gantt/package.json
Geremia Taglialatela c88e8fce11
Fix regression with webpack
Add some entries to `package.json` to improve compatibility with webpack

- Add `import` export as per webpack requirements
- Add `style` export for CSS file
- Add `*.css` to "side effects" to prevent issues with tree-shaking

With this commit, it is possible to import frappe-gantt without breaking
changes in webpack-based applications

Refs:
- https://webpack.js.org/guides/package-exports/

Close #439
2024-09-24 09:44:15 +02:00

65 lines
1.7 KiB
JSON
Executable File

{
"name": "frappe-gantt",
"version": "0.8.1",
"description": "A simple, modern, interactive gantt library for the web",
"main": "src/index.js",
"type": "module",
"scripts": {
"start": "yarn run dev",
"dev": "vite",
"build-dev": "vite build --watch",
"build": "vite build",
"test": "jest",
"lint": "eslint src/**/*.js",
"test:watch": "jest --watch",
"prettier": "prettier --write \"{src/*,tests/*,rollup.config}.js\"",
"prettier-check": "prettier --check \"{src/*,tests/*,rollup.config}.js\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/frappe/gantt.git"
},
"files": [
"src",
"dist",
"README.md"
],
"exports": {
".": {
"require": "./dist/frappe-gantt.umd.js",
"import": "./dist/frappe-gantt.es.js",
"style": "./dist/frappe-gantt.css"
}
},
"keywords": [
"gantt",
"svg",
"simple gantt",
"project timeline",
"interactive gantt",
"project management"
],
"author": "Faris Ansari",
"license": "MIT",
"bugs": {
"url": "https://github.com/frappe/gantt/issues"
},
"homepage": "https://github.com/frappe/gantt",
"devDependencies": {
"eslint": "^4.17.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"jest": "^22.2.1",
"postcss-nesting": "^12.1.2",
"prettier": "3.2.5",
"vite": "^5.2.10"
},
"eslintIgnore": [
"dist"
],
"sideEffects": [
"*.css"
],
"packageManager": "yarn@1.22.22"
}