@schibsted/sourcepoint
Version:
Package containing scripts used by Schibsteds' sites to integrate with Sourcepoint CMP
86 lines (85 loc) • 2.84 kB
JSON
{
"name": "@schibsted/sourcepoint",
"version": "5.5.9",
"description": "Package containing scripts used by Schibsteds' sites to integrate with Sourcepoint CMP",
"repository": {
"type": "git",
"url": "https://schibsted.ghe.com/privacy/sourcepoint"
},
"main": "src/node/index.js",
"browser": "src/browser/index.js",
"exports": {
"node": {
"types": "./node-index.d.ts",
"import": "./src/node/index.js",
"require": "./dist/node/index.cjs"
},
"default": {
"import": "./src/browser/index.js",
"require": "./dist/browser/index.cjs",
"types": "./index.d.ts"
}
},
"type": "module",
"files": [
"src/browser",
"src/node",
"dist",
"index.d.ts",
"node-index.d.ts",
"!src/**/__tests__",
"!src/**/__mocks__"
],
"scripts": {
"test": "npm run genversion && vitest run",
"test:watch": "vitest",
"preexample": "npm run build",
"example": "rollup --watch --config-target='example' -c",
"clean": "rimraf dist && rimraf src/browser/version.js && rimraf src/node/version.js",
"prepublishOnly": "npm run build",
"prepare": "husky || true",
"prebuild": "npm run clean",
"build": "npm run genversion && rollup -c",
"build:debug": "npm run genversion && rollup -c --configDebug",
"start": "npm run genversion && npm run example",
"watch": "npm run genversion && npm-watch",
"genversion": "genversion src/browser/version.js --esm --semi && genversion src/node/version.js --esm --semi"
},
"types": "node-index.d.ts",
"watch": {
"build": "src/*.js"
},
"keywords": [
"schibsted",
"sourcepoint",
"cmp"
],
"author": "Privacy Services Team <privacy-team@schibsted.com>",
"contributors": [
{
"name": "Patrik Åkerstrand",
"email": "patrik.akerstrand@schibsted.com",
"url": "https://schibsted.ghe.com/patrik-akerstrand"
}
],
"license": "UNLICENSED",
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"babel-plugin-transform-modules-iife": "^1.0.0",
"genversion": "^3.2.0",
"husky": "^9.1.6",
"jsdom": "^25.0.1",
"npm-watch": "^0.13.0",
"postcss": "^8.4.47",
"rimraf": "^6.0.1",
"rollup": "^4.24.4",
"rollup-plugin-dotenv": "^0.5.1",
"rollup-plugin-generate-html-template": "^1.7.0",
"rollup-plugin-serve": "^1.1.0",
"vitest": "^2.1.4"
}
}