analytica-frontend-lib 1.0.26 → 1.0.27

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": "analytica-frontend-lib",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Repositório público dos componentes utilizados nas plataformas da Analytica Ensino",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -103,17 +103,16 @@
103
103
  "test:watch": "jest --watch",
104
104
  "test:coverage": "jest --coverage",
105
105
  "test:sonar": "jest --coverage --testResultsProcessor=jest-sonar-reporter",
106
- "generate:exports": "node scripts/generate-exports.mjs",
107
- "build": "npm run build:main && npm run build:components",
108
- "build:main": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --clean --treeshake",
106
+ "build": "npm run build:components && npm run build:index && npm run build:css",
107
+ "build:index": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --external react --external react-dom",
108
+ "build:css": "npx tsup src/styles.css --out-dir dist && cp dist/styles.css dist/index.css",
109
109
  "build:components": "node scripts/build-components.mjs",
110
- "build:check": "npm run typecheck && npm run build",
111
- "dev": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --watch",
112
- "prepack": "npm run build:check && npm run generate:exports",
113
- "prepublishOnly": "npm run generate:exports",
114
- "check-nextjs-compat": "echo 'Checking Next.js 15 compatibility...' && npm run typecheck && npm run test",
110
+ "build:clean": "rm -rf dist && npm run build",
111
+ "generate:exports": "node scripts/generate-exports.mjs",
115
112
  "ladle": "ladle serve",
116
- "ladle:build": "ladle build"
113
+ "ladle:build": "ladle build",
114
+ "prepack": "npm run build:clean && npm run generate:exports",
115
+ "publish:dry": "npm run prepack && npm publish --dry-run"
117
116
  },
118
117
  "engines": {
119
118
  "node": "22.x"