mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	chore(monorepo/electron): add global clean script
This commit is contained in:
		
							parent
							
								
									5d9f2c8d6c
								
							
						
					
					
						commit
						084578befe
					
				
							
								
								
									
										204
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										204
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -7,9 +7,9 @@ | |||||||
|         "": { |         "": { | ||||||
|             "name": "trilium", |             "name": "trilium", | ||||||
|             "version": "0.93.0", |             "version": "0.93.0", | ||||||
|             "hasInstallScript": true, |  | ||||||
|             "license": "AGPL-3.0-only", |             "license": "AGPL-3.0-only", | ||||||
|             "devDependencies": { |             "devDependencies": { | ||||||
|  |                 "rimraf": "^6.0.1", | ||||||
|                 "tsx": "^4.19.3" |                 "tsx": "^4.19.3" | ||||||
|             }, |             }, | ||||||
|             "workspaces": { |             "workspaces": { | ||||||
| @ -3580,6 +3580,23 @@ | |||||||
|                 "node": ">=10" |                 "node": ">=10" | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|  |         "node_modules/@npmcli/move-file/node_modules/rimraf": { | ||||||
|  |             "version": "3.0.2", | ||||||
|  |             "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", | ||||||
|  |             "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", | ||||||
|  |             "deprecated": "Rimraf versions prior to v4 are no longer supported", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "ISC", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "glob": "^7.1.3" | ||||||
|  |             }, | ||||||
|  |             "bin": { | ||||||
|  |                 "rimraf": "bin.js" | ||||||
|  |             }, | ||||||
|  |             "funding": { | ||||||
|  |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|         "node_modules/@panva/asn1.js": { |         "node_modules/@panva/asn1.js": { | ||||||
|             "version": "1.0.0", |             "version": "1.0.0", | ||||||
|             "license": "MIT", |             "license": "MIT", | ||||||
| @ -7629,6 +7646,69 @@ | |||||||
|                 "node": ">=10" |                 "node": ">=10" | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|  |         "node_modules/cacache/node_modules/rimraf": { | ||||||
|  |             "version": "3.0.2", | ||||||
|  |             "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", | ||||||
|  |             "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", | ||||||
|  |             "deprecated": "Rimraf versions prior to v4 are no longer supported", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "ISC", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "glob": "^7.1.3" | ||||||
|  |             }, | ||||||
|  |             "bin": { | ||||||
|  |                 "rimraf": "bin.js" | ||||||
|  |             }, | ||||||
|  |             "funding": { | ||||||
|  |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/cacache/node_modules/rimraf/node_modules/brace-expansion": { | ||||||
|  |             "version": "1.1.11", | ||||||
|  |             "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", | ||||||
|  |             "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "MIT", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "balanced-match": "^1.0.0", | ||||||
|  |                 "concat-map": "0.0.1" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/cacache/node_modules/rimraf/node_modules/glob": { | ||||||
|  |             "version": "7.2.3", | ||||||
|  |             "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", | ||||||
|  |             "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", | ||||||
|  |             "deprecated": "Glob versions prior to v9 are no longer supported", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "ISC", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "fs.realpath": "^1.0.0", | ||||||
|  |                 "inflight": "^1.0.4", | ||||||
|  |                 "inherits": "2", | ||||||
|  |                 "minimatch": "^3.1.1", | ||||||
|  |                 "once": "^1.3.0", | ||||||
|  |                 "path-is-absolute": "^1.0.0" | ||||||
|  |             }, | ||||||
|  |             "engines": { | ||||||
|  |                 "node": "*" | ||||||
|  |             }, | ||||||
|  |             "funding": { | ||||||
|  |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/cacache/node_modules/rimraf/node_modules/minimatch": { | ||||||
|  |             "version": "3.1.2", | ||||||
|  |             "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", | ||||||
|  |             "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "ISC", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "brace-expansion": "^1.1.7" | ||||||
|  |             }, | ||||||
|  |             "engines": { | ||||||
|  |                 "node": "*" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|         "node_modules/cacheable-lookup": { |         "node_modules/cacheable-lookup": { | ||||||
|             "version": "5.0.4", |             "version": "5.0.4", | ||||||
|             "license": "MIT", |             "license": "MIT", | ||||||
| @ -12175,6 +12255,23 @@ | |||||||
|                 "node": "^10.12.0 || >=12.0.0" |                 "node": "^10.12.0 || >=12.0.0" | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|  |         "node_modules/flat-cache/node_modules/rimraf": { | ||||||
|  |             "version": "3.0.2", | ||||||
|  |             "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", | ||||||
|  |             "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", | ||||||
|  |             "deprecated": "Rimraf versions prior to v4 are no longer supported", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "ISC", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "glob": "^7.1.3" | ||||||
|  |             }, | ||||||
|  |             "bin": { | ||||||
|  |                 "rimraf": "bin.js" | ||||||
|  |             }, | ||||||
|  |             "funding": { | ||||||
|  |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|         "node_modules/flatted": { |         "node_modules/flatted": { | ||||||
|             "version": "3.3.3", |             "version": "3.3.3", | ||||||
|             "dev": true, |             "dev": true, | ||||||
| @ -18925,14 +19022,113 @@ | |||||||
|             "license": "MIT" |             "license": "MIT" | ||||||
|         }, |         }, | ||||||
|         "node_modules/rimraf": { |         "node_modules/rimraf": { | ||||||
|             "version": "3.0.2", |             "version": "6.0.1", | ||||||
|  |             "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.0.1.tgz", | ||||||
|  |             "integrity": "sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==", | ||||||
|             "dev": true, |             "dev": true, | ||||||
|             "license": "ISC", |             "license": "ISC", | ||||||
|             "dependencies": { |             "dependencies": { | ||||||
|                 "glob": "^7.1.3" |                 "glob": "^11.0.0", | ||||||
|  |                 "package-json-from-dist": "^1.0.0" | ||||||
|             }, |             }, | ||||||
|             "bin": { |             "bin": { | ||||||
|                 "rimraf": "bin.js" |                 "rimraf": "dist/esm/bin.mjs" | ||||||
|  |             }, | ||||||
|  |             "engines": { | ||||||
|  |                 "node": "20 || >=22" | ||||||
|  |             }, | ||||||
|  |             "funding": { | ||||||
|  |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/rimraf/node_modules/brace-expansion": { | ||||||
|  |             "version": "2.0.1", | ||||||
|  |             "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", | ||||||
|  |             "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "MIT", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "balanced-match": "^1.0.0" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/rimraf/node_modules/glob": { | ||||||
|  |             "version": "11.0.1", | ||||||
|  |             "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", | ||||||
|  |             "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "ISC", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "foreground-child": "^3.1.0", | ||||||
|  |                 "jackspeak": "^4.0.1", | ||||||
|  |                 "minimatch": "^10.0.0", | ||||||
|  |                 "minipass": "^7.1.2", | ||||||
|  |                 "package-json-from-dist": "^1.0.0", | ||||||
|  |                 "path-scurry": "^2.0.0" | ||||||
|  |             }, | ||||||
|  |             "bin": { | ||||||
|  |                 "glob": "dist/esm/bin.mjs" | ||||||
|  |             }, | ||||||
|  |             "engines": { | ||||||
|  |                 "node": "20 || >=22" | ||||||
|  |             }, | ||||||
|  |             "funding": { | ||||||
|  |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/rimraf/node_modules/jackspeak": { | ||||||
|  |             "version": "4.1.0", | ||||||
|  |             "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", | ||||||
|  |             "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "BlueOak-1.0.0", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "@isaacs/cliui": "^8.0.2" | ||||||
|  |             }, | ||||||
|  |             "engines": { | ||||||
|  |                 "node": "20 || >=22" | ||||||
|  |             }, | ||||||
|  |             "funding": { | ||||||
|  |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/rimraf/node_modules/lru-cache": { | ||||||
|  |             "version": "11.1.0", | ||||||
|  |             "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz", | ||||||
|  |             "integrity": "sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "ISC", | ||||||
|  |             "engines": { | ||||||
|  |                 "node": "20 || >=22" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/rimraf/node_modules/minimatch": { | ||||||
|  |             "version": "10.0.1", | ||||||
|  |             "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", | ||||||
|  |             "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "ISC", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "brace-expansion": "^2.0.1" | ||||||
|  |             }, | ||||||
|  |             "engines": { | ||||||
|  |                 "node": "20 || >=22" | ||||||
|  |             }, | ||||||
|  |             "funding": { | ||||||
|  |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/rimraf/node_modules/path-scurry": { | ||||||
|  |             "version": "2.0.0", | ||||||
|  |             "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", | ||||||
|  |             "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "BlueOak-1.0.0", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "lru-cache": "^11.0.0", | ||||||
|  |                 "minipass": "^7.1.2" | ||||||
|  |             }, | ||||||
|  |             "engines": { | ||||||
|  |                 "node": "20 || >=22" | ||||||
|             }, |             }, | ||||||
|             "funding": { |             "funding": { | ||||||
|                 "url": "https://github.com/sponsors/isaacs" |                 "url": "https://github.com/sponsors/isaacs" | ||||||
|  | |||||||
| @ -20,21 +20,19 @@ | |||||||
|     "scripts": { |     "scripts": { | ||||||
|         "build:packages": "npm --workspace=packages/commons run build", |         "build:packages": "npm --workspace=packages/commons run build", | ||||||
|         "test": "npm --workspace=apps/client --workspace=apps/server run test", |         "test": "npm --workspace=apps/client --workspace=apps/server run test", | ||||||
| 
 |         "clean": "rimraf --glob {apps,packages}/*/{build,dist}", | ||||||
|         "client:test": "npm --workspace=apps/client run test", |         "client:test": "npm --workspace=apps/client run test", | ||||||
|         "client:build": "npm --workspace=apps/client run build:webpack", |         "client:build": "npm --workspace=apps/client run build:webpack", | ||||||
| 
 |  | ||||||
|         "server:test": "npm --workspace=apps/server run test", |         "server:test": "npm --workspace=apps/server run test", | ||||||
|         "server:coverage": "npm --workspace=apps/server run coverage", |         "server:coverage": "npm --workspace=apps/server run coverage", | ||||||
|         "server:build": "npm --workspace=apps/server run build:ts", |         "server:build": "npm --workspace=apps/server run build:ts", | ||||||
|         "server:package": "npm run build:packages && npm run client:build && npm --workspace=apps/server run package", |         "server:package": "npm run build:packages && npm run client:build && npm --workspace=apps/server run package", | ||||||
| 
 |  | ||||||
|         "electron-forge:make": "npm run build:packages && npm run client:build && npm --workspace=apps/server run build:prepare-dist && npm --workspace=apps/desktop run electron-forge:make", |         "electron-forge:make": "npm run build:packages && npm run client:build && npm --workspace=apps/server run build:prepare-dist && npm --workspace=apps/desktop run electron-forge:make", | ||||||
| 
 |  | ||||||
|         "chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts", |         "chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts", | ||||||
|         "chore:update-build-info": "tsx ./scripts/update-build-info.ts" |         "chore:update-build-info": "tsx ./scripts/update-build-info.ts" | ||||||
|     }, |     }, | ||||||
|     "devDependencies": { |     "devDependencies": { | ||||||
|  |         "rimraf": "^6.0.1", | ||||||
|         "tsx": "^4.19.3" |         "tsx": "^4.19.3" | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran