Instances that accumulated project managers, favorites, board memberships or board subscriptions pointing at a project or board that no longer exists had no way to find or clear them. The script reports by default and only deletes with `--apply`, which first asks whether a backup exists and refuses outright without a terminal to ask on. It removes nothing but reference rows: structural orphans such as a board without a project carry user content, and a membership whose denormalized project is stale still grants real access to an existing board, so both are reported and left alone.
46 lines
1.9 KiB
JSON
46 lines
1.9 KiB
JSON
{
|
|
"name": "planka",
|
|
"version": "2.2.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"client:build": "npm run build --prefix client",
|
|
"client:lint": "npm run lint --prefix client",
|
|
"client:start": "npm start --prefix client",
|
|
"client:test": "npm test --prefix client",
|
|
"docker:build": "docker build -t planka .",
|
|
"gv": "npm i --package-lock-only --ignore-scripts && genversion --source . --template server/version-template.ejs server/version.js && genversion --source . --template client/version-template.ejs client/src/version.js",
|
|
"postinstall": "npm i --prefix server && npm i --prefix client",
|
|
"lint": "npm run server:lint && npm run client:lint",
|
|
"prepare": "husky",
|
|
"server:build": "npm run build --prefix server",
|
|
"server:console": "npm run console --prefix server",
|
|
"server:db:clean-orphaned-records": "npm run db:clean-orphaned-records --prefix server",
|
|
"server:db:create-admin-user": "npm run db:create-admin-user --prefix server",
|
|
"server:db:init": "npm run db:init --prefix server",
|
|
"server:db:migrate": "npm run db:migrate --prefix server",
|
|
"server:db:seed": "npm run db:seed --prefix server",
|
|
"server:db:upgrade": "npm run db:upgrade --prefix server",
|
|
"server:lint": "npm run lint --prefix server",
|
|
"server:start": "npm start --prefix server",
|
|
"server:start:prod": "npm run start:prod --prefix server",
|
|
"server:swagger:generate": "npm run swagger:generate --prefix server",
|
|
"server:test": "npm test --prefix server",
|
|
"start": "concurrently -n server,client \"npm run server:start\" \"npm run client:start\"",
|
|
"test": "npm run server:test && npm run client:test"
|
|
},
|
|
"lint-staged": {
|
|
"client/src/**/*.{js,jsx}": [
|
|
"npm run client:lint"
|
|
],
|
|
"server/**/*.js": [
|
|
"npm run server:lint"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"concurrently": "^10.0.4",
|
|
"genversion": "^3.2.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.4.0"
|
|
}
|
|
}
|