demarches-normaliennes/package.json
Pierre de La Morinerie 03a16e2ee3 js: fix webpack-dev-server
Currently `bin/webpack-dev-server` raises an error:

> /rails_app/node_modules/webpack-cli/bin/utils/prompt-command.js:46
>    return func(...args);
>           ^
>
> TypeError: Class constructor ServeCommand cannot be invoked without 'new'

It seems this is because webpack-dev-server 4+ stopped being
compatible with webpack 5. So we have to downgrade to webpack-dev-server
3 to fix it.

See https://stackoverflow.com/questions/69046801/brand-new-rails-6-1-4-1-fails-with-webpack-error-typeerror-class-constructor
2022-05-17 14:56:47 +02:00

96 lines
3.1 KiB
JSON

{
"dependencies": {
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.7",
"@headlessui/react": "^1.5.0",
"@heroicons/react": "^1.0.6",
"@hotwired/stimulus": "^3.0.1",
"@hotwired/turbo": "^7.1.0",
"@mapbox/mapbox-gl-draw": "^1.3.0",
"@popperjs/core": "^2.11.4",
"@rails/actiontext": "^6.1.4-1",
"@rails/activestorage": "^6.1.4-1",
"@rails/ujs": "^6.1.4-1",
"@rails/webpacker": "5.4.3",
"@reach/auto-id": "^0.16.0",
"@reach/combobox": "^0.16.5",
"@reach/slider": "^0.16.0",
"@sentry/browser": "6.12.0",
"@stimulus/polyfills": "^2.0.0",
"@tmcw/togeojson": "^4.3.0",
"@webcomponents/custom-elements": "^1.5.0",
"@webcomponents/template": "^1.5.0",
"babel-plugin-macros": "^2.8.0",
"chartkick": "^4.1.1",
"core-js": "^3.6.5",
"debounce": "^1.2.1",
"dom4": "^2.1.6",
"email-butler": "^1.0.13",
"event-target-polyfill": "^0.0.3",
"formdata-polyfill": "^4.0.10",
"geojson": "^0.5.0",
"highcharts": "^10.0.0",
"intersection-observer": "^0.12.0",
"is-hotkey": "^0.2.0",
"maplibre-gl": "^1.15.2",
"match-sorter": "^6.2.0",
"patch-package": "^6.4.7",
"react": "^18.0.0",
"react-coordinate-input": "^1.0.0",
"react-dom": "^18.0.0",
"react-intersection-observer": "^8.31.0",
"react-popper": "^2.2.5",
"react-query": "^3.34.19",
"react-sortable-hoc": "^2.0.0",
"tiny-invariant": "^1.2.0",
"trix": "^1.2.3",
"use-debounce": "^5.2.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"whatwg-fetch": "^3.0.0",
"yet-another-abortcontroller-polyfill": "^0.0.4",
"zod": "^3.14.4"
},
"devDependencies": {
"@2fd/graphdoc": "^2.4.0",
"@types/debounce": "^1.2.1",
"@types/geojson": "^7946.0.8",
"@types/is-hotkey": "^0.1.7",
"@types/mapbox__mapbox-gl-draw": "^1.2.3",
"@types/rails__activestorage": "^7.0.1",
"@types/rails__ujs": "^6.0.1",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"babel-eslint": "^10.1.0",
"del-cli": "^4.0.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"netlify-cli": "^8.3.0",
"prettier": "^2.3.2",
"typescript": "^4.5.5",
"webpack-bundle-analyzer": "^3.7.0",
"webpack-dev-server": "~3"
},
"scripts": {
"clean": "del tmp public/packs public/packs-test",
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx ./app/javascript ./config/webpack",
"webpack:build": "NODE_ENV=production bin/webpack",
"lint:types": "tsc",
"graphql:docs:build": "graphdoc --force",
"graphql:docs:deploy": "netlify deploy -d ./docs/graphql --prod",
"graphql:docs:publish": "yarn graphql:docs:build && yarn graphql:docs:deploy",
"postinstall": "patch-package"
},
"engines": {
"node": ">= 12.*"
},
"graphdoc": {
"endpoint": "https://www.demarches-simplifiees.fr/api/v2/graphql",
"output": "./docs/graphql"
}
}