Add @probo/cookie-banner SDK package scaffold

Introduce the boilerplate for a new public npm package that will
serve as the cookie consent banner JavaScript SDK. The package
uses esbuild to produce both an IIFE bundle (for script tag
embedding) and an ESM module. Versioning is independent from the
monorepo: CI compares package.json against npm and only publishes
when the version changes.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-15 16:06:00 +04:00
parent 5e4cc337ef
commit be1e94da71
7 changed files with 710 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
{
"name": "@probo/cookie-banner",
"version": "0.0.0",
"description": "Probo cookie consent banner SDK",
"type": "module",
"main": "dist/cookie-banner.iife.js",
"module": "dist/cookie-banner.mjs",
"types": "dist/index.d.ts",
"scripts": {
"build": "node build.mjs && tsc --emitDeclarationOnly",
"check": "tsc --noEmit"
},
"author": {
"name": "Probo Inc",
"email": "hello@getprobo.com"
},
"files": [
"dist"
],
"license": "MIT",
"keywords": [
"cookie-banner",
"cookie-consent",
"gdpr",
"privacy",
"probo"
],
"repository": {
"type": "git",
"url": "git+https://github.com/getprobo/probo.git",
"directory": "packages/cookie-banner"
},
"bugs": {
"url": "https://github.com/getprobo/probo/issues"
},
"homepage": "https://github.com/getprobo/probo#README",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"esbuild": "^0.25.0",
"typescript": "~5.8.3"
}
}