Bundle the Open Cookie Database (Apache-2.0) with a refresh script
scripts/refresh-cookie-database.mjs (pnpm cookie-db:refresh) downloads the CSV and license at a pinned commit, refuses a non-Apache license, and writes src/modules/consent/scanner/data/openCookieDatabase.ts (source commit and change notice in the header) plus docs/licenses/open-cookie-database-LICENSE.txt. Nothing is fetched at runtime. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e53d09b720
commit
ab45cf48be
@@ -70,6 +70,7 @@
|
||||
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
||||
"build:types": "tsc --outDir dist --rootDir ./src",
|
||||
"clean": "rimraf {dist,*.tsbuildinfo}",
|
||||
"cookie-db:refresh": "node scripts/refresh-cookie-database.mjs",
|
||||
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
||||
"dev": "next dev dev --turbo",
|
||||
"dev:generate-importmap": "pnpm dev:payload generate:importmap",
|
||||
|
||||
Reference in New Issue
Block a user