mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-27 13:52:38 +00:00
[web] Fixup .mjs
extension in scripts mentions (calls, comments, copybara) (#21969)
* Fixup `.mjs` extension in scripts mentions (calls, comments, copybara) * Replace `.js` by `.*` in copy.bara.sky exclude * Add `services/web/modules/modules-*.mjs` in copy.bara.sky glob GitOrigin-RevId: b3ecb849b44bdf4257cc17f6985f8117a4d662ae
This commit is contained in:
parent
7e42b1f3eb
commit
b27b2808f2
5 changed files with 7 additions and 7 deletions
|
@ -24,7 +24,7 @@ const argv = minimist(process.argv.slice(2), {
|
|||
})
|
||||
|
||||
if (argv.help || argv._.length > 1) {
|
||||
console.error(`Usage: node scripts/add_user_count_to_csv.js [OPTS] [INPUT-FILE]
|
||||
console.error(`Usage: node scripts/add_user_count_to_csv.mjs [OPTS] [INPUT-FILE]
|
||||
Looks up the number of users for each domain in the input file and adds
|
||||
columns for the number of users in the domain, subdomains, and total.
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* Clear feedback collection before a cutoff date
|
||||
*
|
||||
* Usage
|
||||
* node scripts/clear_feedback_collection.js 2022-11-01 # dry run mode
|
||||
* DRY_RUN=false node scripts/clear_feedback_collection.js 2022-11-01 # deletion mode
|
||||
* node scripts/clear_feedback_collection.mjs 2022-11-01 # dry run mode
|
||||
* DRY_RUN=false node scripts/clear_feedback_collection.mjs 2022-11-01 # deletion mode
|
||||
*/
|
||||
|
||||
import { db, ObjectId } from '../app/src/infrastructure/mongodb.js'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Script to create projects with sharelatex history for testing
|
||||
// Example:
|
||||
// node scripts/create_project.js --user-id=5dca84e11e71ae002ff73bd4 --name="My Test Project" --old-history
|
||||
// node scripts/create_project.mjs --user-id=5dca84e11e71ae002ff73bd4 --name="My Test Project" --old-history
|
||||
|
||||
import fs from 'node:fs'
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
// Usage:
|
||||
//
|
||||
// Save current plan and addon prices to file
|
||||
// $ node scripts/recurly/recurly_prices.js --download -o prices.json
|
||||
// $ node scripts/recurly/recurly_prices.mjs --download -o prices.json
|
||||
//
|
||||
// Upload new plan and addon prices (change --dry-run to --commit to make the change)
|
||||
// $ node scripts/recurly/recurly_prices.js --upload -f prices.json --dry-run
|
||||
// $ node scripts/recurly/recurly_prices.mjs --upload -f prices.json --dry-run
|
||||
//
|
||||
// File format is JSON of the plans returned by recurly, with an extra _addOns property for the
|
||||
// addOns associated with that plan.
|
||||
|
|
|
@ -196,7 +196,7 @@ export default main
|
|||
|
||||
if (fileURLToPath(import.meta.url) === process.argv[1]) {
|
||||
if (argv.help || argv._.length > 1) {
|
||||
console.error(`Usage: node scripts/remove_deleted_users_from_token_access_refs.js [OPTS]
|
||||
console.error(`Usage: node scripts/remove_deleted_users_from_token_access_refs.mjs [OPTS]
|
||||
Finds or removes deleted user ids from token access fields
|
||||
"tokenAccessReadOnly_refs" and "tokenAccessReadAndWrite_refs" in the "projects" collection.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue