gt-react 9.2.20 → 9.2.22

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,17 +1,21 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "9.2.20",
3
+ "version": "9.2.22",
4
4
  "description": "A React library for automatic internationalization.",
5
5
  "main": "./dist/index.cjs.min.cjs",
6
6
  "module": "./dist/index.esm.min.mjs",
7
7
  "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "CHANGELOG.md"
11
+ ],
8
12
  "peerDependencies": {
9
13
  "react": ">=16.8.0",
10
14
  "react-dom": ">=16.8.0"
11
15
  },
12
16
  "dependencies": {
13
- "@generaltranslation/supported-locales": "^2.0.7",
14
- "generaltranslation": "^6.2.3"
17
+ "@generaltranslation/supported-locales": "^2.0.9",
18
+ "generaltranslation": "^6.2.9"
15
19
  },
16
20
  "scripts": {
17
21
  "patch": "npm version patch",
@@ -1,33 +0,0 @@
1
- import resolve from '@rollup/plugin-node-resolve';
2
- import commonjs from '@rollup/plugin-commonjs';
3
- import typescript from '@rollup/plugin-typescript';
4
- import postcss from 'rollup-plugin-postcss';
5
- import peerDepsExternal from 'rollup-plugin-peer-deps-external';
6
- import { babel } from '@rollup/plugin-babel';
7
- import preserveDirectives from 'rollup-preserve-directives';
8
-
9
- export default {
10
- plugins: [
11
- peerDepsExternal(), // Exclude peer dependencies from the bundle
12
- resolve({
13
- // Locates and bundles dependencies in node_modules
14
- browser: true,
15
- preferBuiltins: false,
16
- }),
17
- commonjs(), // Converts CommonJS modules to ES6
18
- babel({
19
- // Transpiles the code using Babel
20
- babelHelpers: 'bundled',
21
- exclude: /node_modules/,
22
- presets: ['@babel/preset-react', '@babel/preset-typescript'],
23
- }),
24
- typescript({
25
- // Compiles TypeScript files
26
- tsconfig: './tsconfig.json',
27
- sourceMap: false,
28
- }),
29
- postcss(), // Process CSS files
30
- preserveDirectives(), // Preserve directives in the output (i.e., "use client")
31
- ],
32
- external: ['react', 'react-dom', 'generaltranslation', '@generaltranslation/supported-locales'],
33
- };
package/rollup.config.mjs DELETED
@@ -1,110 +0,0 @@
1
- import baseConfig from './rollup.base.config.mjs';
2
- import terser from '@rollup/plugin-terser';
3
- import { dts } from 'rollup-plugin-dts';
4
-
5
- export default [
6
- /* ---------------------------------------- */
7
- // Bundling for the main library (index.ts)
8
- {
9
- input: './src/index.ts',
10
- output: [
11
- {
12
- file: './dist/index.cjs.min.cjs',
13
- format: 'cjs',
14
- exports: 'auto', // 'auto' ensures compatibility with both default and named exports in CommonJS
15
- sourcemap: false,
16
- },
17
- {
18
- file: './dist/index.esm.min.mjs',
19
- format: 'esm',
20
- exports: 'named', // Named exports for ES modules
21
- sourcemap: false,
22
- },
23
- ],
24
- plugins: [
25
- ...baseConfig.plugins,
26
- terser(), // Minification
27
- ],
28
- external: baseConfig.external,
29
- },
30
-
31
- // TypeScript declarations for the main library (index.ts)
32
- {
33
- input: './src/index.ts',
34
- output: {
35
- file: './dist/index.d.ts',
36
- format: 'esm',
37
- },
38
- plugins: [dts()],
39
- },
40
-
41
- /* ---------------------------------------- */
42
- // Bundling for the internal library (internal.ts)
43
- {
44
- input: './src/internal.ts',
45
- output: [
46
- {
47
- file: './dist/internal.cjs.min.cjs',
48
- format: 'cjs',
49
- exports: 'auto', // 'auto' ensures compatibility with both default and named exports in CommonJS
50
- sourcemap: false,
51
- },
52
- {
53
- file: './dist/internal.esm.min.mjs',
54
- format: 'esm',
55
- exports: 'named', // Named exports for ES modules
56
- sourcemap: false,
57
- },
58
- ],
59
- plugins: [
60
- ...baseConfig.plugins,
61
- terser(), // Minification
62
- ],
63
- external: baseConfig.external,
64
- },
65
-
66
- // TypeScript declarations for the internal library (internal.ts)
67
- {
68
- input: './src/internal.ts',
69
- output: {
70
- file: './dist/internal.d.ts',
71
- format: 'esm',
72
- },
73
- plugins: [dts()],
74
- },
75
-
76
- /* ---------------------------------------- */
77
- // Bundling for the client library (client.ts)
78
- {
79
- input: 'src/client.ts',
80
- output: [
81
- {
82
- file: './dist/client.cjs.min.cjs',
83
- format: 'cjs',
84
- exports: 'auto', // 'auto' ensures compatibility with both default and named exports in CommonJS
85
- sourcemap: false,
86
- },
87
- {
88
- file: './dist/client.esm.min.mjs',
89
- format: 'esm',
90
- exports: 'named', // Named exports for ES modules
91
- sourcemap: false,
92
- },
93
- ],
94
- plugins: [
95
- ...baseConfig.plugins,
96
- terser(), // Minification
97
- ],
98
- external: baseConfig.external,
99
- },
100
-
101
- // TypeScript declarations for the client library (client.ts)
102
- {
103
- input: './src/client.ts',
104
- output: {
105
- file: './dist/client.d.ts',
106
- format: 'esm',
107
- },
108
- plugins: [dts()],
109
- },
110
- ];
package/tsconfig.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "ESNext",
4
- "target": "ES6",
5
- "strict": true,
6
- "esModuleInterop": true,
7
- "skipLibCheck": true,
8
- "forceConsistentCasingInFileNames": true,
9
- "outDir": "./dist",
10
- "rootDir": "./src",
11
- "resolveJsonModule": true,
12
- "moduleResolution": "Node",
13
- "sourceMap": false,
14
- "declaration": true,
15
- "declarationDir": "./dist",
16
- "declarationMap": true,
17
- "removeComments": false,
18
- "allowSyntheticDefaultImports": true,
19
- "jsx": "react-jsx"
20
- },
21
- "include": ["src/**/*"],
22
- "exclude": ["node_modules", "dist"]
23
- }