cm-reporting 0.8.4 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-reporting",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "Conflict Minerals Reporting Template Components",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "repository": {
@@ -38,6 +38,7 @@
38
38
  "require": "./dist/index.cjs"
39
39
  },
40
40
  "./styles.css": "./dist/cm-reporting.css",
41
+ "./styles.scoped.css": "./dist/cm-reporting.scoped.css",
41
42
  "./templates/*": "./dist/templates/*"
42
43
  },
43
44
  "files": [
@@ -108,7 +109,7 @@
108
109
  "scripts": {
109
110
  "dev": "vite",
110
111
  "build": "tsc -b && vite build",
111
- "build:lib": "vite build --config vite.lib.config.ts && node scripts/flatten-css-layers.mjs",
112
+ "build:lib": "vite build --config vite.lib.config.ts && node scripts/flatten-css-layers.mjs && node scripts/scope-css.mjs",
112
113
  "lint": "eslint .",
113
114
  "lint:fix": "eslint . --fix",
114
115
  "format": "prettier --write .",
@@ -117,7 +118,7 @@
117
118
  "generate:excel-mapping": "node scripts/generate-excel-mapping.js",
118
119
  "validate:excel-mapping": "node scripts/generate-excel-mapping.js --check",
119
120
  "pretest": "pnpm validate:templates && pnpm validate:excel-mapping",
120
- "test": "vitest run",
121
+ "test": "vitest run && node --test scripts/scope-css.node-test.mjs",
121
122
  "sg:scan": "sg scan -c ../sgconfig.yml ./src",
122
123
  "sg:fix": "sg scan -c ../sgconfig.yml ./src -U",
123
124
  "changeset": "changeset",