@i18n-micro/devtools-ui 1.2.0 → 1.2.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.
@@ -0,0 +1,7 @@
1
+ import { PluginOption } from 'vite';
2
+ export interface DevToolsPluginOptions {
3
+ base?: string;
4
+ translationDir?: string;
5
+ injectButton?: boolean;
6
+ }
7
+ export declare function i18nDevToolsPlugin(options?: DevToolsPluginOptions): PluginOption;
@@ -1,4 +1,4 @@
1
- import type { PluginOption } from 'vite';
1
+ import { PluginOption } from 'vite';
2
2
  export interface DevToolsPluginOptions {
3
3
  base?: string;
4
4
  translationDir?: string;
package/package.json CHANGED
@@ -1,53 +1,81 @@
1
1
  {
2
2
  "name": "@i18n-micro/devtools-ui",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
+ "description": "DevTools UI and Vite plugin for Nuxt I18n Micro.",
5
+ "license": "MIT",
4
6
  "type": "module",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/s00d/nuxt-i18n-micro.git",
11
+ "directory": "packages/devtools-ui"
12
+ },
13
+ "homepage": "https://github.com/s00d/nuxt-i18n-micro/tree/main/packages/devtools-ui#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/s00d/nuxt-i18n-micro/issues"
16
+ },
17
+ "engines": {
18
+ "node": ">=18"
19
+ },
5
20
  "main": "./dist/index.umd.js",
6
- "module": "./dist/index.es.js",
7
21
  "types": "./dist/index.d.ts",
8
22
  "exports": {
9
23
  ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.es.js",
12
- "require": "./dist/index.umd.js"
24
+ "import": {
25
+ "types": "./dist/index.d.ts",
26
+ "default": "./dist/index.es.js"
27
+ },
28
+ "require": {
29
+ "types": "./dist/index.d.cts",
30
+ "default": "./dist/index.umd.js"
31
+ },
32
+ "default": "./dist/index.es.js"
13
33
  },
14
34
  "./bridge": {
15
35
  "types": "./dist/bridge/interface.d.ts",
16
- "import": "./dist/bridge/interface.js"
36
+ "import": "./dist/bridge/interface.js",
37
+ "default": "./dist/bridge/interface.js"
17
38
  },
18
39
  "./bridge/create": {
19
40
  "types": "./dist/bridge/create-bridge.d.ts",
20
- "import": "./dist/bridge/create-bridge.js"
41
+ "import": "./dist/bridge/create-bridge.js",
42
+ "default": "./dist/bridge/create-bridge.js"
21
43
  },
22
44
  "./vite": {
23
45
  "types": "./dist/vite/plugin.d.ts",
24
- "import": "./dist/vite/plugin.mjs"
25
- }
46
+ "import": "./dist/vite/plugin.mjs",
47
+ "default": "./dist/vite/plugin.mjs"
48
+ },
49
+ "./package.json": "./package.json"
26
50
  },
27
51
  "files": [
28
52
  "dist",
29
- "vite"
53
+ "LICENSE",
54
+ "README.md"
30
55
  ],
31
56
  "publishConfig": {
32
57
  "access": "public"
33
58
  },
34
59
  "dependencies": {
35
60
  "vue": "^3.5.25",
36
- "@i18n-micro/types": "1.1.5"
61
+ "@i18n-micro/types": "1.2.3",
62
+ "@i18n-micro/utils": "1.0.0"
37
63
  },
38
64
  "devDependencies": {
39
65
  "@tailwindcss/vite": "^4.1.17",
40
66
  "@vitejs/plugin-vue": "^6.0.3",
41
67
  "autoprefixer": "^10.4.22",
42
68
  "postcss": "^8.5.6",
69
+ "publint": "^0.3.17",
43
70
  "tailwindcss": "^4.1.17",
44
71
  "vite": "^7.3.1",
45
- "vite-plugin-dts": "^4.5.4"
72
+ "vite-plugin-dts": "^4.5.4",
73
+ "vitest": "^3.2.4"
46
74
  },
47
75
  "scripts": {
48
- "build": "vite build && vite build --config vite.config.plugin.mjs && npm run build:plugin-types",
49
- "build:plugin": "vite build --config vite.config.plugin.mjs",
50
- "build:plugin-types": "tsc vite/plugin.ts --declaration --emitDeclarationOnly --outDir dist/vite --module esnext --target es2020 --moduleResolution node --esModuleInterop --skipLibCheck",
76
+ "build": "vite build && vite build --mode umd && vite build --mode plugin",
77
+ "check:package": "publint",
78
+ "test:dist": "vitest run --config vitest.dist.config.ts",
51
79
  "typecheck": "tsc --noEmit"
52
80
  }
53
81
  }
package/dist/env.d.ts DELETED
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />