mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
Update precommit checker
This commit is contained in:
parent
8349bc4366
commit
15386da90a
3 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
const fs = require('fs');
|
||||
const https = require('https');
|
||||
const remoteConfigUrl = 'https://raw.githubusercontent.com/anytypeio/open/main/compliance/licenses-config.json';
|
||||
const remoteConfigUrl = 'https://raw.githubusercontent.com/anyproto/open/main/compliance/licenses-config.json';
|
||||
|
||||
function processLicenses(licenses, allowedLicenses) {
|
||||
const disallowedPackages = Object.keys(licenses).filter(pkg => {
|
||||
|
@ -12,8 +12,8 @@ function processLicenses(licenses, allowedLicenses) {
|
|||
pkgLicenses = "LGPL"
|
||||
}
|
||||
|
||||
// Solutions developed by Anytype are allowed
|
||||
if (licenses[pkg].publisher == "Anytype") {
|
||||
// Solutions developed by Anytype or Any Association are allowed
|
||||
if (licenses[pkg].publisher == "Anytype" || licenses[pkg].publisher == "Any" || licenses[pkg].publisher == "Any Association") {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -8,7 +8,6 @@
|
|||
"name": "anytype",
|
||||
"version": "0.31.47-alpha",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@electron/remote": "^2.0.8",
|
||||
"@sentry/browser": "^7.39.0",
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
"url": "git+https://github.com/anyproto/anytype-ts.git"
|
||||
},
|
||||
"author": {
|
||||
"name": "Anytype",
|
||||
"name": "Any Association",
|
||||
"email": "info@anytype.io"
|
||||
},
|
||||
"bugs": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue