@lingui/metro-transformer 5.9.0 → 6.0.0-next.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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const metroTransformer = require('../shared/metro-transformer.145819d7.cjs');
3
+ const metroTransformer = require('../shared/metro-transformer.BEuppBsx.cjs');
4
4
  const expoTransformer = require('@expo/metro-config/babel-transformer');
5
5
  require('@lingui/conf');
6
6
  require('@lingui/cli/api');
@@ -1,4 +1,4 @@
1
- import { B as BabelTransformerArgs } from '../shared/metro-transformer.23194d80.cjs';
1
+ import { B as BabelTransformerArgs } from '../shared/metro-transformer.BWVNJFsv.cjs';
2
2
 
3
3
  declare const transform: (args: BabelTransformerArgs) => Promise<{
4
4
  ast: unknown;
@@ -1,4 +1,4 @@
1
- import { B as BabelTransformerArgs } from '../shared/metro-transformer.23194d80.mjs';
1
+ import { B as BabelTransformerArgs } from '../shared/metro-transformer.BWVNJFsv.mjs';
2
2
 
3
3
  declare const transform: (args: BabelTransformerArgs) => Promise<{
4
4
  ast: unknown;
@@ -1,4 +1,4 @@
1
- import { c as createLinguiMetroTransformer } from '../shared/metro-transformer.ab762e48.mjs';
1
+ import { c as createLinguiMetroTransformer } from '../shared/metro-transformer.BK9ARr0z.mjs';
2
2
  import expoTransformer from '@expo/metro-config/babel-transformer';
3
3
  import '@lingui/conf';
4
4
  import '@lingui/cli/api';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const metroTransformer = require('../shared/metro-transformer.145819d7.cjs');
3
+ const metroTransformer = require('../shared/metro-transformer.BEuppBsx.cjs');
4
4
  const reactNativeTransformer = require('@react-native/metro-babel-transformer');
5
5
  require('@lingui/conf');
6
6
  require('@lingui/cli/api');
@@ -1,4 +1,4 @@
1
- import { B as BabelTransformerArgs } from '../shared/metro-transformer.23194d80.cjs';
1
+ import { B as BabelTransformerArgs } from '../shared/metro-transformer.BWVNJFsv.cjs';
2
2
 
3
3
  declare const transform: (args: BabelTransformerArgs) => Promise<{
4
4
  ast: unknown;
@@ -1,4 +1,4 @@
1
- import { B as BabelTransformerArgs } from '../shared/metro-transformer.23194d80.mjs';
1
+ import { B as BabelTransformerArgs } from '../shared/metro-transformer.BWVNJFsv.mjs';
2
2
 
3
3
  declare const transform: (args: BabelTransformerArgs) => Promise<{
4
4
  ast: unknown;
@@ -1,4 +1,4 @@
1
- import { c as createLinguiMetroTransformer } from '../shared/metro-transformer.ab762e48.mjs';
1
+ import { c as createLinguiMetroTransformer } from '../shared/metro-transformer.BK9ARr0z.mjs';
2
2
  import reactNativeTransformer from '@react-native/metro-babel-transformer';
3
3
  import '@lingui/conf';
4
4
  import '@lingui/cli/api';
@@ -1,5 +1,5 @@
1
1
  import { getConfig } from '@lingui/conf';
2
- import { getCatalogForFile, createCompiledCatalog, getCatalogs } from '@lingui/cli/api';
2
+ import { getCatalogs, getCatalogForFile, createCompiledCatalog } from '@lingui/cli/api';
3
3
  import path from 'path';
4
4
  import memoizeOne from 'memoize-one';
5
5
 
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@lingui/metro-transformer",
3
- "version": "5.9.0",
3
+ "version": "6.0.0-next.0",
4
+ "type": "commonjs",
4
5
  "description": "Metro bundler transformer for LinguiJS catalogs",
5
6
  "exports": {
6
7
  "./expo": {
7
8
  "require": "./dist/expo/index.cjs",
8
- "import": "./dist/expo/index.mjs",
9
- "types": "./dist/expo/index.d.ts"
9
+ "import": "./dist/expo/index.mjs"
10
10
  },
11
11
  "./react-native": {
12
12
  "require": "./dist/react-native/index.cjs",
13
- "import": "./dist/react-native/index.mjs",
14
- "types": "./dist/react-native/index.d.ts"
13
+ "import": "./dist/react-native/index.mjs"
15
14
  }
16
15
  },
17
16
  "publishConfig": {
@@ -36,8 +35,8 @@
36
35
  "multilingual"
37
36
  ],
38
37
  "scripts": {
39
- "build": "rimraf ./dist && unbuild",
40
- "stub": "unbuild --stub"
38
+ "build": "unbuild",
39
+ "check-types": "tsc --noEmit"
41
40
  },
42
41
  "homepage": "https://lingui.dev",
43
42
  "repository": {
@@ -49,7 +48,7 @@
49
48
  "url": "https://github.com/lingui/js-lingui/issues"
50
49
  },
51
50
  "engines": {
52
- "node": ">=16.0.0"
51
+ "node": ">=22.19.0"
53
52
  },
54
53
  "files": [
55
54
  "LICENSE",
@@ -57,15 +56,13 @@
57
56
  "dist/"
58
57
  ],
59
58
  "dependencies": {
60
- "@babel/runtime": "^7.20.13",
61
- "@lingui/cli": "5.9.0",
62
- "@lingui/conf": "5.9.0",
59
+ "@lingui/cli": "6.0.0-next.0",
60
+ "@lingui/conf": "6.0.0-next.0",
63
61
  "memoize-one": "^6.0.0"
64
62
  },
65
63
  "devDependencies": {
66
- "@lingui/format-json": "5.9.0",
67
- "rimraf": "^6.0.1",
68
- "unbuild": "2.0.0"
64
+ "unbuild": "3.6.1",
65
+ "vitest": "4.0.18"
69
66
  },
70
67
  "peerDependencies": {
71
68
  "@expo/metro-config": "*",
@@ -84,5 +81,8 @@
84
81
  "optional": true
85
82
  }
86
83
  },
87
- "gitHead": "491d4c17651c3f76116fe7f63f6bb8a554bef8da"
84
+ "unbuild": {
85
+ "declaration": "node16"
86
+ },
87
+ "gitHead": "a9576050487a4f7dfbc88db20814d5a1bb861c8c"
88
88
  }
@@ -1,8 +0,0 @@
1
- import { B as BabelTransformerArgs } from '../shared/metro-transformer.23194d80.js';
2
-
3
- declare const transform: (args: BabelTransformerArgs) => Promise<{
4
- ast: unknown;
5
- metadata: unknown;
6
- }>;
7
-
8
- export { transform };
@@ -1,8 +0,0 @@
1
- import { B as BabelTransformerArgs } from '../shared/metro-transformer.23194d80.js';
2
-
3
- declare const transform: (args: BabelTransformerArgs) => Promise<{
4
- ast: unknown;
5
- metadata: unknown;
6
- }>;
7
-
8
- export { transform };
@@ -1,8 +0,0 @@
1
- type BabelTransformerArgs = {
2
- readonly filename: string;
3
- readonly options: unknown;
4
- readonly plugins?: unknown;
5
- readonly src: string;
6
- };
7
-
8
- export type { BabelTransformerArgs as B };