Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .syncpackrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
'packages/*/package.json',
'website/package.json',
'argos/package.json',
'admin/scripts/package.json',
'packages/create-docusaurus/templates/*/package.json',
],

Expand Down Expand Up @@ -124,6 +125,6 @@
pinVersion: 'workspace:*',
},

// Default: all remaining dependencies — highest version wins (syncpack default)

Check warning on line 128 in .syncpackrc.ts

View workflow job for this annotation

GitHub Actions / Lint AutoFix

This line has a comment length of 84. Maximum allowed is 80
],
} satisfies RcFile;
1 change: 1 addition & 0 deletions admin/scripts/copyUntypedFiles.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
Expand Down
19 changes: 16 additions & 3 deletions admin/scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
{
"name": "docu-scripts",
"description": "These are the scripts used in various places of Docusaurus maintenance",
"name": "@docusaurus/monorepo-scripts",
"version": "4.0.0",
"description": "Scripts used in various places of Docusaurus maintenance",
"private": true,
"license": "MIT",
"type": "module"
"type": "module",
"bin": {
"copy-untyped-files": "copyUntypedFiles.js"
},
"dependencies": {
"@docusaurus/fs": "workspace:*",
"@docusaurus/logger": "workspace:*",
"commander": "^15.0.0",
"execa": "^10.0.1",
"image-size": "^2.0.4",
"lodash": "^4.18.1",
"sharp": "^0.35.1"
}
}
5 changes: 4 additions & 1 deletion knip.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const config: KnipConfig = {
workspaces: {
'.': {
entry: [
'admin/scripts/*.js',
// Vitest alias for @generated/* modules
'test/emptyModule.ts',
],
Expand All @@ -69,6 +68,10 @@ const config: KnipConfig = {
// The plugin reads functions entry points from netlify.toml
netlify: true,
},
'admin/scripts': {
// Run directly with node, or through the package bin commands
entry: ['*.js'],
},
'packages/create-docusaurus': {
// Used to test the CLI package
ignoreBinaries: ['create-docusaurus'],
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"@ai-sdk/react": "^3.0.280",
"@crowdin/cli": "^5.0.2",
"@docusaurus/eslint-plugin": "workspace:*",
"@docusaurus/monorepo-scripts": "workspace:*",
"@docusaurus/plugin-content-blog": "workspace:*",
"@docusaurus/plugin-content-docs": "workspace:*",
"@docusaurus/plugin-content-pages": "workspace:*",
Expand All @@ -94,7 +95,6 @@
"@types/semver": "^7.8.0",
"@vitejs/plugin-react": "^6.1.1",
"@vitest/eslint-plugin": "^1.6.27",
"commander": "^15.0.0",
"cross-env": "^10.1.0",
"cspell": "^10.3.3",
"eslint": "^9.39.5",
Expand All @@ -107,10 +107,8 @@
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-you-might-not-need-an-effect": "^1.0.2",
"eslint-plugin-regexp": "^3.3.0",
"execa": "^10.0.1",
"globals": "^17.12.0",
"husky": "^9.1.7",
"image-size": "^2.0.4",
"jest-serializer-ansi-escapes": "^5.0.0",
"jest-serializer-react-helmet-async": "^1.0.21",
"jiti": "^2.7.0",
Expand All @@ -127,7 +125,6 @@
"react-dom": "^19.3.0",
"react-helmet-async": "npm:@slorber/react-helmet-async@1.3.0",
"rimraf": "^6.1.3",
"sharp": "^0.35.1",
"stylelint": "^17.15.0",
"stylelint-config-standard": "^40.0.0",
"stylelint-copyright": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-plugin-debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "lib/index.js",
"types": "src/plugin-debug.d.ts",
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt \"lib/theme/**/*.js\"",
"build": "tsc --build && copy-untyped-files && oxfmt \"lib/theme/**/*.js\"",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-plugin-google-gtag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js",
"build": "tsc --build && copy-untyped-files",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-plugin-ideal-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "lib/index.js",
"types": "src/plugin-ideal-image.d.ts",
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt \"lib/theme/**/*.js\"",
"build": "tsc --build && copy-untyped-files && oxfmt \"lib/theme/**/*.js\"",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-plugin-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "lib/index.js",
"types": "src/plugin-pwa.d.ts",
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt \"lib/theme/**/*.js\"",
"build": "tsc --build && copy-untyped-files && oxfmt \"lib/theme/**/*.js\"",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
},
"license": "MIT",
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt \"lib/theme/**/*.js\"",
"build": "tsc --build && copy-untyped-files && oxfmt \"lib/theme/**/*.js\"",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"dependencies": {
"@docusaurus/core": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"./Details": "./lib/components/Details/index.js"
},
"scripts": {
"build": "tsc && node ../../admin/scripts/copyUntypedFiles.js",
"build": "tsc && copy-untyped-files",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch",
"copy:watch": "copy-untyped-files --watch",
"removeThemeInternalReexport": "node removeThemeInternalReexport.mjs"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-live-codeblock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"access": "public"
},
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt \"lib/theme/**/*.js\"",
"build": "tsc --build && copy-untyped-files && oxfmt \"lib/theme/**/*.js\"",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-mermaid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
},
"license": "MIT",
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt \"lib/theme/**/*.js\"",
"build": "tsc --build && copy-untyped-files && oxfmt \"lib/theme/**/*.js\"",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"dependencies": {
"@docusaurus/core": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-search-algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
},
"license": "MIT",
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && oxfmt \"lib/theme/**/*.js\"",
"build": "tsc --build && copy-untyped-files && oxfmt \"lib/theme/**/*.js\"",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"dependencies": {
"@algolia/autocomplete-core": "^1.19.10",
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"docusaurus": "bin/docusaurus.mjs"
},
"scripts": {
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js",
"build": "tsc --build && copy-untyped-files",
"watch": "run-p -c copy:watch build:watch",
"build:watch": "tsc --build --watch",
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
"copy:watch": "copy-untyped-files --watch"
},
"bugs": {
"url": "https://github.com/facebook/docusaurus/issues"
Expand Down
42 changes: 30 additions & 12 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ packages:
- 'website'
- 'test-website-in-workspace'
- 'packages/create-docusaurus/templates/*'
- 'admin/scripts'
- 'admin/test-bad-package'
- 'admin/new.docusaurus.io'

Expand Down
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"@types/prismjs": "^1.26.6",
"copy-text-to-clipboard": "^3.2.2",
"cross-env": "^10.1.0",
"image-size": "^2.0.4",
"lodash": "^4.18.1",
"prismjs": "^1.30.0",
"rimraf": "^6.1.3",
Expand Down
Loading