@arenarium/maps 1.0.0 → 1.0.2

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/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import Map from './Map.svelte';
2
2
  export { Map };
3
- export declare function init(elementId: string): void;
3
+ export declare function mountMap(elementId: string): void;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { mount } from 'svelte';
2
2
  import Map from './Map.svelte';
3
3
  export { Map };
4
- export function init(elementId) {
4
+ export function mountMap(elementId) {
5
5
  const target = document.getElementById(elementId);
6
6
  if (!target)
7
7
  throw new Error(`Element with id ${elementId} not found`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arenarium/maps",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -24,10 +24,12 @@
24
24
  "devDependencies": {
25
25
  "@eslint/compat": "^1.2.5",
26
26
  "@eslint/js": "^9.18.0",
27
+ "@rollup/plugin-typescript": "^12.1.2",
27
28
  "@sveltejs/adapter-auto": "^4.0.0",
28
29
  "@sveltejs/kit": "^2.16.0",
29
30
  "@sveltejs/package": "^2.0.0",
30
31
  "@sveltejs/vite-plugin-svelte": "^5.0.0",
32
+ "dts-bundle-generator": "^9.5.1",
31
33
  "eslint": "^9.18.0",
32
34
  "eslint-config-prettier": "^10.0.1",
33
35
  "eslint-plugin-svelte": "^3.0.0",
@@ -39,7 +41,8 @@
39
41
  "svelte-check": "^4.0.0",
40
42
  "typescript": "^5.0.0",
41
43
  "typescript-eslint": "^8.20.0",
42
- "vite": "^6.0.0"
44
+ "vite": "^6.0.0",
45
+ "vite-plugin-dts": "^4.5.3"
43
46
  },
44
47
  "keywords": [
45
48
  "arenarium",
@@ -48,7 +51,8 @@
48
51
  ],
49
52
  "scripts": {
50
53
  "dev": "vite dev",
51
- "build": "vite build && npm run prepack",
54
+ "build": "vite build",
55
+ "build:types": "dts-bundle-generator --export-referenced-types --umd-module-name=arenarium -o ./dist/index.d.ts ./src/lib/index.ts",
52
56
  "preview": "vite preview",
53
57
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
54
58
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",