2017-12-15 10:15:04 +08:00
|
|
|
{
|
2024-02-26 13:45:58 +00:00
|
|
|
"private": true,
|
2023-06-30 13:01:45 +02:00
|
|
|
"repository": "https://github.com/discourse/discourse",
|
2017-12-15 10:15:04 +08:00
|
|
|
"author": "Discourse",
|
2020-04-29 12:18:21 -04:00
|
|
|
"license": "GPL-2.0-only",
|
2023-06-30 13:01:45 +02:00
|
|
|
"devDependencies": {
|
2026-02-03 20:02:58 +01:00
|
|
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
|
|
|
"@discourse/lint-configs": "^2.39.0",
|
2023-08-24 16:36:22 +02:00
|
|
|
"@discourse/moment-timezone-names-translations": "^1.0.0",
|
2026-01-14 20:58:36 +09:00
|
|
|
"@fortawesome/fontawesome-free": "7.1.0",
|
2026-02-03 20:02:58 +01:00
|
|
|
"@glint/ember-tsc": "^1.1.1",
|
|
|
|
|
"@glint/tsserver-plugin": "^2.1.0",
|
2025-03-05 01:20:16 +01:00
|
|
|
"@rdil/parallel-prettier": "^3.0.0",
|
2025-12-19 15:40:20 +01:00
|
|
|
"@swc/core": "^1.15.7",
|
2025-09-26 00:50:13 +02:00
|
|
|
"chrome-launcher": "^1.2.1",
|
2025-02-19 21:39:55 +01:00
|
|
|
"chrome-remote-interface": "^0.33.3",
|
2025-08-26 19:55:10 +02:00
|
|
|
"concurrently": "^9.2.1",
|
2025-08-18 11:28:54 +02:00
|
|
|
"ember-template-lint": "7.9.3",
|
2025-10-16 14:56:41 +02:00
|
|
|
"esbuild": "^0.25.11",
|
2026-01-16 15:29:06 +01:00
|
|
|
"eslint": "9.39.2",
|
2025-10-08 23:44:48 +02:00
|
|
|
"jsdoc": "^4.0.5",
|
2026-02-03 20:02:58 +01:00
|
|
|
"lefthook": "^2.1.0",
|
2024-12-02 00:34:19 +01:00
|
|
|
"licensee": "^11.1.1",
|
2025-09-23 00:33:33 +02:00
|
|
|
"lint-to-the-future": "^2.6.4",
|
2026-02-03 20:02:58 +01:00
|
|
|
"lint-to-the-future-ember-template": "^4.1.0",
|
2025-12-15 14:26:43 +01:00
|
|
|
"lint-to-the-future-eslint": "^3.3.0",
|
2025-12-03 17:50:46 +01:00
|
|
|
"playwright": "1.57.0",
|
2026-02-03 20:02:58 +01:00
|
|
|
"prettier": "3.8.1",
|
2025-12-21 22:29:42 +01:00
|
|
|
"puppeteer-core": "^24.34.0",
|
2026-02-03 20:02:58 +01:00
|
|
|
"stylelint": "17.1.0",
|
2025-11-06 00:32:30 +01:00
|
|
|
"terser": "^5.44.1",
|
2025-10-30 10:15:22 +00:00
|
|
|
"typescript": "^5.9.3"
|
2018-11-05 15:10:27 -05:00
|
|
|
},
|
|
|
|
|
"scripts": {
|
2024-03-05 18:25:46 -06:00
|
|
|
"dev": "concurrently \"bin/ember-cli server --environment=development\" \"RAILS_ENV=development bin/rails server\"",
|
2025-05-21 12:02:52 +02:00
|
|
|
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
|
|
|
|
|
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\"",
|
2025-07-18 00:53:41 +02:00
|
|
|
"lint:css": "pnpm stylelint 'app/assets/stylesheets/**/*.scss' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') 'themes/**/*.scss'",
|
|
|
|
|
"lint:css:fix": "pnpm stylelint --fix 'app/assets/stylesheets/**/*.scss' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') 'themes/**/*.scss'",
|
2025-10-22 14:19:50 +01:00
|
|
|
"lint:js": "eslint ./frontend $(script/list_bundled_plugins) ./themes --cache --no-error-on-unmatched-pattern",
|
|
|
|
|
"lint:js:fix": "eslint --fix ./frontend $(script/list_bundled_plugins) ./themes --no-error-on-unmatched-pattern",
|
2026-01-16 15:29:06 +01:00
|
|
|
"lint:hbs": "ember-template-lint 'frontend/**/*.gjs' 'plugins/*/assets/javascripts/**/*.gjs' 'plugins/*/admin/assets/javascripts/**/*.gjs' 'themes/**/*.gjs'",
|
|
|
|
|
"lint:hbs:fix": "ember-template-lint 'frontend/**/*.gjs' 'plugins/*/assets/javascripts/**/*.gjs' 'plugins/*/admin/assets/javascripts/**/*.gjs' 'themes/**/*.gjs' --fix",
|
|
|
|
|
"lint:prettier": "pnpm pprettier --list-different 'app/assets/stylesheets/**/*.scss' 'frontend/**/*.{js,gjs,css}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets,test}/javascripts/**/*.{js,gjs}') 'themes/**/*.{js,gjs,scss}'",
|
|
|
|
|
"lint:prettier:fix": "pnpm prettier -w --no-error-on-unmatched-pattern 'app/assets/stylesheets/**/*.scss' 'frontend/**/*.{js,gjs,css}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets,test}/javascripts/**/*.{js,gjs}') 'themes/**/*.{js,gjs,scss}'",
|
|
|
|
|
"lint:types": "ember-tsc -b",
|
2023-04-06 12:25:01 -04:00
|
|
|
"lttf:ignore": "lint-to-the-future ignore",
|
|
|
|
|
"lttf:output": "lint-to-the-future output -o ./lint-progress/",
|
2024-09-03 10:51:07 +01:00
|
|
|
"lint-progress": "pnpm lttf:output && npx html-pages ./lint-progress --no-cache",
|
2025-10-22 14:19:50 +01:00
|
|
|
"ember": "pnpm --dir=frontend/discourse ember",
|
2025-10-22 16:03:54 +01:00
|
|
|
"playwright-install": "playwright install --no-shell chromium"
|
2021-08-04 22:04:58 +02:00
|
|
|
},
|
|
|
|
|
"engines": {
|
2025-03-07 14:02:40 +00:00
|
|
|
"node": ">= 20",
|
2024-09-03 10:51:07 +01:00
|
|
|
"npm": "please-use-pnpm",
|
|
|
|
|
"yarn": "please-use-pnpm",
|
2026-01-12 10:43:06 +00:00
|
|
|
"pnpm": "^10"
|
2024-09-03 10:51:07 +01:00
|
|
|
},
|
2026-01-12 10:43:06 +00:00
|
|
|
"packageManager": "pnpm@10.28.0",
|
2024-09-03 10:51:07 +01:00
|
|
|
"pnpm": {
|
|
|
|
|
"patchedDependencies": {
|
|
|
|
|
"ember-this-fallback@0.4.0": "patches/ember-this-fallback@0.4.0.patch",
|
|
|
|
|
"babel-plugin-debug-macros@0.3.4": "patches/babel-plugin-debug-macros@0.3.4.patch",
|
2024-12-02 00:34:19 +01:00
|
|
|
"licensee@11.1.1": "patches/licensee@11.1.1.patch",
|
2024-12-11 11:09:25 -03:00
|
|
|
"@ember-compat/tracked-built-ins@0.9.1": "patches/@ember-compat__tracked-built-ins@0.9.1.patch",
|
2025-11-14 15:55:09 +00:00
|
|
|
"ember-source@6.6.0": "patches/ember-source@6.6.0.patch",
|
|
|
|
|
"http-proxy@1.18.1": "patches/http-proxy@1.18.1.patch"
|
2024-09-03 10:51:07 +01:00
|
|
|
},
|
|
|
|
|
"peerDependencyRules": {
|
|
|
|
|
"allowedVersions": {
|
|
|
|
|
"lint-to-the-future-eslint>eslint": "*",
|
|
|
|
|
"@mixer/parallel-prettier>prettier": "*",
|
|
|
|
|
"lint-to-the-future-ember-template>ember-template-lint": "*",
|
2026-01-12 15:10:27 +00:00
|
|
|
"ember-this-fallback>ember-source": "*",
|
|
|
|
|
"ember-this-fallback>ember-cli-htmlbars": "*",
|
|
|
|
|
"@fullcalendar/moment-timezone>moment-timezone": "*"
|
2024-09-03 10:51:07 +01:00
|
|
|
},
|
|
|
|
|
"ignoreMissing": [
|
|
|
|
|
"webpack"
|
|
|
|
|
]
|
2025-08-27 17:48:40 +02:00
|
|
|
},
|
|
|
|
|
"overrides": {
|
|
|
|
|
"@ember/test-waiters": "4.1.1"
|
2026-01-15 13:36:14 +00:00
|
|
|
}
|
2017-12-15 10:15:04 +08:00
|
|
|
}
|
2025-07-18 00:53:41 +02:00
|
|
|
}
|