@helsenorge/library-build 38.0.4 → 39.0.1

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/lib/exports.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable no-console */
1
2
  import * as fs from 'fs';
2
3
  import * as path from 'path';
3
4
  import { globSync } from 'glob';
@@ -29,7 +30,6 @@ function run() {
29
30
  const exportMap = {
30
31
  './package.json': './package.json',
31
32
  };
32
- let totalFilesFound = 0;
33
33
  dirsToScan.forEach(dirEntry => {
34
34
  const dirPath = path.resolve(cwd, dirEntry);
35
35
  // Only process directories (skip root files like README.md in the files array)
@@ -88,7 +88,6 @@ function run() {
88
88
  exportKey = `./${baseName}`;
89
89
  exportMap[exportKey] = fullPath;
90
90
  }
91
- totalFilesFound++;
92
91
  });
93
92
  });
94
93
  // SORTING
@@ -1 +1 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../src/vite.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,mBAAmB,EAAgB,MAAM,MAAM,CAAC;AAG9D,eAAO,MAAM,SAAS,EAAE,mBAIvB,CAAC;;AAEF,wBAAyD"}
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../src/vite.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,mBAAmB,EAAgB,MAAM,MAAM,CAAC;AAE9D,eAAO,MAAM,SAAS,EAAE,mBAOvB,CAAC;;AAEF,wBAAyD"}
@@ -1,9 +1,11 @@
1
1
  import react from '@vitejs/plugin-react';
2
2
  import { defineConfig } from 'vite';
3
- import tsconfigPaths from 'vite-tsconfig-paths';
4
3
  export const getConfig = async () => {
5
4
  return {
6
- plugins: [react(), tsconfigPaths()],
5
+ plugins: [react()],
6
+ resolve: {
7
+ tsconfigPaths: true,
8
+ },
7
9
  };
8
10
  };
9
11
  export default defineConfig(async (env) => getConfig(env));
@@ -1 +1 @@
1
- {"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../src/vitest.config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAwC,MAAM,eAAe,CAAC;AAE5F,eAAO,MAAM,SAAS,EAAE,gBAmCvB,CAAC;;AAEF,wBAAmD"}
1
+ {"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../src/vitest.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAwC,MAAM,eAAe,CAAC;AAE5F,eAAO,MAAM,SAAS,EAAE,gBAsCvB,CAAC;;AAEF,wBAAmD"}
@@ -1,9 +1,11 @@
1
1
  import react from '@vitejs/plugin-react';
2
- import tsconfigPaths from 'vite-tsconfig-paths';
3
2
  import { coverageConfigDefaults, defineConfig } from 'vitest/config';
4
3
  export const getConfig = () => {
5
4
  return {
6
- plugins: [react(), tsconfigPaths()],
5
+ plugins: [react()],
6
+ resolve: {
7
+ tsconfigPaths: true,
8
+ },
7
9
  test: {
8
10
  include: ['src/**/__tests__/**/*.[jt]s?(x)', 'src/**/?(*.)+(spec|test).[jt]s?(x)'],
9
11
  globals: true,
@@ -21,9 +23,9 @@ export const getConfig = () => {
21
23
  },
22
24
  coverage: {
23
25
  enabled: true,
24
- reporter: ['cobertura', 'lcov', 'json'],
25
- include: ['src/**'],
26
- exclude: [...coverageConfigDefaults.exclude, '**/__devonly__/**', '**/__mocks__/**', '**/mocks/**'],
26
+ reporter: ['cobertura', 'lcov'],
27
+ include: ['src/**/*.{ts,tsx}'],
28
+ exclude: [...coverageConfigDefaults.exclude, '**/__devonly__/**', '**/__mocks__/**', '**/mocks/**', '**/__data__/**'],
27
29
  },
28
30
  reporters: ['default', 'junit'],
29
31
  outputFile: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helsenorge/library-build",
3
- "version": "38.0.4",
3
+ "version": "39.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -55,37 +55,36 @@
55
55
  "react-dom": "^19.0.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/node": "^24.12.0",
58
+ "@types/node": "^25.9.1",
59
59
  "@types/yargs": "^17.0.35",
60
- "npm-run-all2": "^8.0.4",
61
- "react": "^19.2.4",
62
- "react-dom": "^19.2.4"
60
+ "npm-run-all2": "^9.0.1",
61
+ "react": "^19.2.6",
62
+ "react-dom": "^19.2.6"
63
63
  },
64
64
  "dependencies": {
65
- "@helsenorge/eslint-config": "^38.0.2",
65
+ "@helsenorge/eslint-config": "^39.0.1",
66
66
  "@helsenorge/typed-scss-modules": "^9.0.9",
67
67
  "@testing-library/jest-dom": "^6.9.1",
68
68
  "@testing-library/react": "^16.3.2",
69
69
  "@testing-library/user-event": "^14.6.1",
70
70
  "@types/copyfiles": "^2.4.4",
71
- "@types/react": "^19.2.14",
71
+ "@types/react": "^19.2.15",
72
72
  "@types/react-dom": "^19.2.3",
73
- "@vitejs/plugin-react": "^5.1.4",
74
- "@vitest/coverage-v8": "^4.0.18",
73
+ "@vitejs/plugin-react": "^6.0.1",
74
+ "@vitest/coverage-v8": "^4.1.7",
75
75
  "copyfiles": "^2.4.1",
76
- "jsdom": "^26.1.0",
76
+ "jsdom": "^29.1.1",
77
77
  "rimraf": "^6.1.3",
78
- "sass": "^1.98.0",
79
- "sass-embedded": "^1.98.0",
80
- "typescript": "~5.9.3",
81
- "vite": "^7.3.1",
82
- "vite-tsconfig-paths": "^6.1.1",
83
- "vitest": "^4.0.18",
78
+ "sass": "^1.100.0",
79
+ "sass-embedded": "^1.100.0",
80
+ "typescript": "~6.0.3",
81
+ "vite": "^8.0.13",
82
+ "vitest": "^4.1.7",
84
83
  "yargs": "^18.0.0"
85
84
  },
86
85
  "engineStrict": true,
87
86
  "engines": {
88
- "node": "^22.0.0 || ^24.0.0",
89
- "npm": ">=10.0.0"
87
+ "node": "^24.0.0 || ^26.0.0",
88
+ "npm": ">=11.0.0"
90
89
  }
91
90
  }