cry-vetzdravila 1.0.5 → 1.0.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": "cry-vetzdravila",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "license": "CC-BY-NC-ND-4.0",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "test": "bun test",
25
25
  "test:podobnost": "bun run src/register/helper/testPodobnosti.ts",
26
26
  "test:normalizacija": "bun run src/register/helper/testNormalizacije.ts",
27
- "build": "rm -rf dist && tsc"
27
+ "build": "bun build src/index.ts --outfile dist/browser.js --target browser --minify"
28
28
  },
29
29
  "dependencies": {
30
30
  "cry-klikvet-logic": "^1.0.458",
package/src/browser.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Browser-only entry point
3
+ *
4
+ * This file re-exports everything from index.ts for browser bundling.
5
+ * Node-specific dependencies are handled via build-time replacements.
6
+ */
7
+
8
+ export * from "./index";
@@ -1,6 +1,6 @@
1
1
  import { ZivalskeVrste } from "./ZivalskeVrste"
2
-
3
- import { MozneKarenceZa, PotiAplikacijeZdravila } from "cry-klikvet-logic";
2
+ import type { MozneKarenceZa } from "cry-klikvet-logic/dist/types/karence.mjs";
3
+ import { PotiAplikacijeZdravila } from "cry-klikvet-logic/dist/types/karence.mjs";
4
4
  /**
5
5
  * Karance po živalskih vrsta in morebiti po poteh aplikacije
6
6
  *
@@ -1,7 +1,6 @@
1
- import { skupneEntitete } from "cry-klikvet-logic"
2
-
1
+ import vrsteZivali from "cry-klikvet-logic/dist/skupneEntitete/vrsteZivali.mjs";
3
2
 
4
3
  /**
5
4
  * Širant živalskih vrst
6
5
  */
7
- export const ZivalskeVrste = skupneEntitete.vrsteZivali;
6
+ export const ZivalskeVrste = vrsteZivali;