vite-intlayer 4.0.0

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,6 @@
1
+ import type { Plugin } from 'vite';
2
+ /**
3
+ * A Vite plugin that integrates a logic similar to the Next.js intlayer middleware.
4
+ */
5
+ export declare const intLayerMiddlewarePlugin: () => Plugin;
6
+ //# sourceMappingURL=intlayerMiddlewarePlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intlayerMiddlewarePlugin.d.ts","sourceRoot":"","sources":["../../src/intlayerMiddlewarePlugin.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,MAAM,CAAC;AA0B5C;;GAEG;AACH,eAAO,MAAM,wBAAwB,QAAO,MAiD3C,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type Plugin } from 'vite';
2
+ type PluginOptions = {};
3
+ /**
4
+ *
5
+ * A Vite plugin that integrates IntLayer configuration into the build process
6
+ *
7
+ * ```ts
8
+ * // Example usage of the plugin in a Vite configuration
9
+ * export default defineConfig({
10
+ * plugins: [ intlayerPlugin() ],
11
+ * });
12
+ * ```
13
+ * */
14
+ export declare const intlayerPlugin: (_pluginOptions?: PluginOptions) => Plugin;
15
+ export {};
16
+ //# sourceMappingURL=intlayerPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intlayerPlugin.d.ts","sourceRoot":"","sources":["../../src/intlayerPlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;AAG5C,KAAK,aAAa,GAAG,EAEpB,CAAC;AAEF;;;;;;;;;;MAUM;AACN,eAAO,MAAM,cAAc,oBAAoB,aAAa,KAAQ,MA4DlE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,130 @@
1
+ {
2
+ "name": "vite-intlayer",
3
+ "version": "4.0.0",
4
+ "private": false,
5
+ "description": "Intlayer for vite application",
6
+ "keywords": [
7
+ "intlayer",
8
+ "data",
9
+ "internationalization",
10
+ "multilingual",
11
+ "i18n",
12
+ "typescript",
13
+ "react",
14
+ "vite",
15
+ "json"
16
+ ],
17
+ "homepage": "https://intlayer.org",
18
+ "bugs": {
19
+ "url": "https://github.com/aymericzip/intlayer/issues"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/aymericzip/intlayer.git"
24
+ },
25
+ "license": "Apache-2.0",
26
+ "author": {
27
+ "name": "Aymeric PINEAU",
28
+ "url": "https://github.com/aymericzip"
29
+ },
30
+ "contributors": [
31
+ {
32
+ "name": "Aymeric Pineau",
33
+ "email": "ay.pineau@gmail.com",
34
+ "url": "https://github.com/aymericzip"
35
+ }
36
+ ],
37
+ "exports": {
38
+ ".": {
39
+ "types": "./dist/types/index.d.ts",
40
+ "require": "./dist/cjs/index.cjs",
41
+ "import": "./dist/esm/index.mjs"
42
+ },
43
+ "./server": {
44
+ "types": "./dist/types/server/index.d.ts",
45
+ "require": "./dist/cjs/server/index.cjs",
46
+ "import": "./dist/esm/server/index.mjs"
47
+ },
48
+ "./craco-plugin": {
49
+ "types": "./dist/types/craco/intlayerCracoPlugin.d.ts",
50
+ "require": "./dist/cjs/craco/intlayerCracoPlugin.cjs",
51
+ "import": "./dist/esm/craco/intlayerCracoPlugin.mjs"
52
+ },
53
+ "./craco-config": {
54
+ "types": "./dist/types/craco/craco.config.d.ts",
55
+ "require": "./dist/cjs/craco/craco.config.cjs",
56
+ "import": "./dist/esm/craco/craco.config.mjs"
57
+ },
58
+ "./vite": {
59
+ "types": "./dist/types/vite/index.d.ts",
60
+ "require": "./dist/cjs/vite/index.cjs",
61
+ "import": "./dist/esm/vite/index.mjs"
62
+ },
63
+ "./editor": {
64
+ "types": "./dist/types/editor/index.d.ts",
65
+ "require": "./dist/cjs/editor/index.cjs",
66
+ "import": "./dist/esm/editor/index.mjs"
67
+ },
68
+ "./package.json": "./package.json"
69
+ },
70
+ "main": "dist/cjs/index.cjs",
71
+ "module": "dist/esm/index.mjs",
72
+ "types": "dist/types/index.d.ts",
73
+ "typesVersions": {
74
+ "*": {
75
+ "package.json": [
76
+ "./package.json"
77
+ ]
78
+ }
79
+ },
80
+ "files": [
81
+ "./dist",
82
+ "./package.json"
83
+ ],
84
+ "dependencies": {
85
+ "vite": "^6.0.7",
86
+ "@intlayer/config": "4.0.0",
87
+ "@intlayer/core": "4.0.0",
88
+ "@intlayer/chokidar": "4.0.0"
89
+ },
90
+ "devDependencies": {
91
+ "@types/node": "^22.10.6",
92
+ "@typescript-eslint/parser": "^8.20.0",
93
+ "concurrently": "^9.1.2",
94
+ "eslint": "^9.18.0",
95
+ "prettier": "^3.4.2",
96
+ "rimraf": "^6.0.1",
97
+ "tsc-alias": "^1.8.10",
98
+ "tsup": "^8.3.5",
99
+ "typescript": "^5.7.3",
100
+ "@utils/eslint-config": "1.0.4",
101
+ "@utils/tsup-config": "1.0.4",
102
+ "@utils/ts-config": "1.0.4",
103
+ "@utils/ts-config-types": "1.0.4"
104
+ },
105
+ "peerDependencies": {
106
+ "vite": ">=4.0.0",
107
+ "@intlayer/chokidar": "4.0.0",
108
+ "@intlayer/core": "4.0.0",
109
+ "@intlayer/config": "4.0.0"
110
+ },
111
+ "engines": {
112
+ "node": ">=14.18"
113
+ },
114
+ "bug": {
115
+ "url": "https://github.com/aymericzip/intlayer/issues"
116
+ },
117
+ "scripts": {
118
+ "build": "pnpm build:package & pnpm build:types",
119
+ "build:package": "tsup",
120
+ "build:types": "tsc --project ./tsconfig.types.json && tsc-alias --project ./tsconfig.types.json",
121
+ "clean": "rimraf ./dist",
122
+ "dev": "concurrently --prefix none \"tsup --watch\" \"tsc --project ./tsconfig.types.json --watch\" \"tsc-alias --project ./tsconfig.types.json --watch\"",
123
+ "lint": "eslint . --cache",
124
+ "lint:fix": "eslint . --cache --fix",
125
+ "prettier": "prettier . --check",
126
+ "prettier:fix": "prettier . --write",
127
+ "test": "",
128
+ "typecheck": "tsup --project ./tsconfig.json --noEmit"
129
+ }
130
+ }