react-scripts-intlayer 9.7.0 → 9.7.1
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/cjs/cli/react-scripts-intlayer.cjs +3 -4
- package/dist/cjs/craco.config.cjs +2 -3
- package/dist/cjs/findDuplicateWebpackPaths.cjs +2 -3
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/intlayerCracoPlugin.cjs +2 -3
- package/dist/types/craco.config.d.ts +0 -2
- package/dist/types/craco.config.d.ts.map +1 -1
- package/dist/types/findDuplicateWebpackPaths.d.ts +0 -2
- package/dist/types/findDuplicateWebpackPaths.d.ts.map +1 -1
- package/dist/types/intlayerCracoPlugin.d.ts +1 -2
- package/dist/types/intlayerCracoPlugin.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_findDuplicateWebpackPaths = require(
|
|
3
|
-
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
2
|
+
const require_findDuplicateWebpackPaths = require("../findDuplicateWebpackPaths.cjs");
|
|
4
3
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
4
|
+
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
5
5
|
let node_child_process = require("node:child_process");
|
|
6
6
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/cli/react-scripts-intlayer.ts
|
|
9
9
|
/**
|
|
10
10
|
* To make the setup easier, we are using craco to override the webpack configuration.
|
|
11
11
|
* This script is used to run the craco scripts with the custom configuration.
|
|
@@ -84,5 +84,4 @@ const runScript = async () => {
|
|
|
84
84
|
};
|
|
85
85
|
runScript();
|
|
86
86
|
|
|
87
|
-
//#endregion
|
|
88
87
|
//# sourceMappingURL=react-scripts-intlayer.cjs.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const require_intlayerCracoPlugin = require(
|
|
1
|
+
const require_intlayerCracoPlugin = require("./intlayerCracoPlugin.cjs");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/craco.config.ts
|
|
4
4
|
const cracoConfig = { plugins: [{ plugin: require_intlayerCracoPlugin.intlayerCracoPlugin }] };
|
|
5
5
|
|
|
6
|
-
//#endregion
|
|
7
6
|
module.exports = cracoConfig;
|
|
8
7
|
//# sourceMappingURL=craco.config.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let node_module = require("node:module");
|
|
3
2
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
3
|
+
let node_module = require("node:module");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/findDuplicateWebpackPaths.ts
|
|
6
6
|
/**
|
|
7
7
|
* Packages whose webpack resolution must agree for a CRA build to succeed.
|
|
8
8
|
*
|
|
@@ -51,7 +51,6 @@ const findDuplicateWebpackPaths = (resolver = resolveWebpackFrom) => {
|
|
|
51
51
|
return uniqueWebpackPaths.length < 2 ? [] : uniqueWebpackPaths;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
//#endregion
|
|
55
54
|
exports.findDuplicateWebpackPaths = findDuplicateWebpackPaths;
|
|
56
55
|
exports.resolveWebpackFrom = resolveWebpackFrom;
|
|
57
56
|
//# sourceMappingURL=findDuplicateWebpackPaths.cjs.map
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_intlayerCracoPlugin = require(
|
|
2
|
+
const require_intlayerCracoPlugin = require("./intlayerCracoPlugin.cjs");
|
|
3
3
|
|
|
4
4
|
exports.intlayerCracoPlugin = require_intlayerCracoPlugin.intlayerCracoPlugin;
|
|
5
5
|
exports.overrideCracoConfig = require_intlayerCracoPlugin.overrideCracoConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
3
2
|
let node_path = require("node:path");
|
|
4
3
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
4
|
+
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
5
5
|
let _intlayer_webpack = require("@intlayer/webpack");
|
|
6
6
|
let defu = require("defu");
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/intlayerCracoPlugin.ts
|
|
9
9
|
const intlayerConfig = (0, _intlayer_config_node.getConfiguration)();
|
|
10
10
|
const alias = (0, _intlayer_config_utils.getAlias)({
|
|
11
11
|
configuration: intlayerConfig,
|
|
@@ -41,7 +41,6 @@ const intlayerCracoPlugin = {
|
|
|
41
41
|
overrideWebpackConfig
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
//#endregion
|
|
45
44
|
exports.intlayerCracoPlugin = intlayerCracoPlugin;
|
|
46
45
|
exports.overrideCracoConfig = overrideCracoConfig;
|
|
47
46
|
exports.overrideWebpackConfig = overrideWebpackConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"craco.config.d.ts","names":[],"sources":["../../src/craco.config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"craco.config.d.ts","names":[],"sources":["../../src/craco.config.ts"],"mappings":"A,cAIM"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/findDuplicateWebpackPaths.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Resolves a function that maps a package name to the `webpack` entry point
|
|
4
3
|
* that package would load, or `undefined` when the package (or its webpack) is
|
|
@@ -33,5 +32,4 @@ export declare const resolveWebpackFrom: WebpackResolver;
|
|
|
33
32
|
* result of fewer than two entries means the install is consistent.
|
|
34
33
|
*/
|
|
35
34
|
export declare const findDuplicateWebpackPaths: (resolver?: WebpackResolver) => string[];
|
|
36
|
-
//#endregion
|
|
37
35
|
//# sourceMappingURL=findDuplicateWebpackPaths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findDuplicateWebpackPaths.d.ts","names":[],"sources":["../../src/findDuplicateWebpackPaths.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"findDuplicateWebpackPaths.d.ts","names":[],"sources":["../../src/findDuplicateWebpackPaths.ts"],"mappings":";;;;;YAiBY,mBAAmB;;;;;;;;;qBAUlB,oBAAoB;;;;;;;;;;;;;;;;;;;qBA+BpB,4BAAyB,WAC1B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CracoConfig, CracoConfigOverride, CracoPlugin, WebpackConfigOverride } from "@craco/types";
|
|
2
|
-
//#region src/intlayerCracoPlugin.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The webpack `Configuration` type exactly as CRACO hands it to us.
|
|
5
4
|
*
|
|
@@ -24,5 +23,5 @@ export declare const overrideCracoConfig: ({ cracoConfig }: CracoConfigOverride)
|
|
|
24
23
|
* and sets the environment variables.
|
|
25
24
|
*/
|
|
26
25
|
export declare const intlayerCracoPlugin: CracoPlugin;
|
|
27
|
-
|
|
26
|
+
export {};
|
|
28
27
|
//# sourceMappingURL=intlayerCracoPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intlayerCracoPlugin.d.ts","names":[],"sources":["../../src/intlayerCracoPlugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"intlayerCracoPlugin.d.ts","names":[],"sources":["../../src/intlayerCracoPlugin.ts"],"mappings":";;;;;;;;;;;KAsBK,qBAAqB;;;;qBAab,0BAAqB,iBAE/B,0BAAwB;;;;qBAyBd,wBAAmB,eAE7B,wBAAsB;;;;;qBAsBZ,qBAAqB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-scripts-intlayer",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Integrate Intlayer with Create React App using custom React scripts for internationalization i18n and advanced Webpack configurations",
|
|
6
6
|
"keywords": [
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@craco/craco": "7.1.0",
|
|
83
|
-
"@intlayer/config": "9.7.
|
|
84
|
-
"@intlayer/engine": "9.7.
|
|
85
|
-
"@intlayer/types": "9.7.
|
|
86
|
-
"@intlayer/webpack": "9.7.
|
|
83
|
+
"@intlayer/config": "9.7.1",
|
|
84
|
+
"@intlayer/engine": "9.7.1",
|
|
85
|
+
"@intlayer/types": "9.7.1",
|
|
86
|
+
"@intlayer/webpack": "9.7.1",
|
|
87
87
|
"defu": "6.1.7",
|
|
88
88
|
"node-loader": "2.1.0",
|
|
89
89
|
"process": "0.11.10"
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"@utils/ts-config-types": "1.0.4",
|
|
98
98
|
"@utils/tsdown-config": "1.0.4",
|
|
99
99
|
"rimraf": "6.1.3",
|
|
100
|
-
"tsdown": "0.23.
|
|
100
|
+
"tsdown": "0.23.4",
|
|
101
101
|
"typescript": "7.0.2",
|
|
102
|
-
"vitest": "5.0
|
|
102
|
+
"vitest": "5.1.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"webpack": ">=5.0.0"
|