angular-intlayer 6.1.5 → 6.1.6-canary.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.
|
@@ -37,17 +37,13 @@ var import_deepmerge = __toESM(require("deepmerge"));
|
|
|
37
37
|
var import_path = require("path");
|
|
38
38
|
const mergeConfig = (baseConfig) => {
|
|
39
39
|
const intlayerConfig = (0, import_config.getConfiguration)();
|
|
40
|
-
const { mainDir, configDir, baseDir } = intlayerConfig.content;
|
|
41
|
-
const dictionariesPath = (0, import_path.join)(mainDir, "dictionaries.mjs");
|
|
42
|
-
const relativeDictionariesPath = (0, import_path.relative)(baseDir, dictionariesPath);
|
|
43
|
-
const configurationPath = (0, import_path.join)(configDir, "configuration.json");
|
|
44
|
-
const relativeConfigurationPath = (0, import_path.relative)(baseDir, configurationPath);
|
|
45
40
|
const config = {
|
|
46
41
|
resolve: {
|
|
47
|
-
alias: {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
alias: (0, import_config.getAlias)({
|
|
43
|
+
configuration: intlayerConfig,
|
|
44
|
+
formatter: (value) => (0, import_path.resolve)(value)
|
|
45
|
+
// get absolute path
|
|
46
|
+
})
|
|
51
47
|
},
|
|
52
48
|
externals: {
|
|
53
49
|
esbuild: "esbuild",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport merge from 'deepmerge';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport merge from 'deepmerge';\nimport { resolve } from 'path';\nimport type { Configuration as WebpackConfig } from 'webpack';\n\nexport const mergeConfig = (baseConfig: WebpackConfig): WebpackConfig => {\n const intlayerConfig = getConfiguration();\n\n const config = {\n resolve: {\n alias: getAlias({\n configuration: intlayerConfig,\n formatter: (value: string) => resolve(value), // get absolute path\n }),\n },\n externals: {\n esbuild: 'esbuild',\n module: 'module',\n fs: 'fs',\n chokidar: 'chokidar',\n fsevents: 'fsevents',\n },\n module: {\n rules: [\n {\n test: /\\.node$/,\n loader: 'node-loader',\n },\n ],\n },\n plugins: [new IntlayerPlugin()],\n };\n\n return merge(baseConfig, config);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2C;AAC3C,qBAA+B;AAC/B,uBAAkB;AAClB,kBAAwB;AAGjB,MAAM,cAAc,CAAC,eAA6C;AACvE,QAAM,qBAAiB,gCAAiB;AAExC,QAAM,SAAS;AAAA,IACb,SAAS;AAAA,MACP,WAAO,wBAAS;AAAA,QACd,eAAe;AAAA,QACf,WAAW,CAAC,cAAkB,qBAAQ,KAAK;AAAA;AAAA,MAC7C,CAAC;AAAA,IACH;AAAA,IACA,WAAW;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,UAAU;AAAA,MACV,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,OAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS,CAAC,IAAI,8BAAe,CAAC;AAAA,EAChC;AAEA,aAAO,iBAAAA,SAAM,YAAY,MAAM;AACjC;","names":["merge"]}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { getConfiguration } from "@intlayer/config";
|
|
1
|
+
import { getAlias, getConfiguration } from "@intlayer/config";
|
|
2
2
|
import { IntlayerPlugin } from "@intlayer/webpack";
|
|
3
3
|
import merge from "deepmerge";
|
|
4
|
-
import {
|
|
4
|
+
import { resolve } from "path";
|
|
5
5
|
const mergeConfig = (baseConfig) => {
|
|
6
6
|
const intlayerConfig = getConfiguration();
|
|
7
|
-
const { mainDir, configDir, baseDir } = intlayerConfig.content;
|
|
8
|
-
const dictionariesPath = join(mainDir, "dictionaries.mjs");
|
|
9
|
-
const relativeDictionariesPath = relative(baseDir, dictionariesPath);
|
|
10
|
-
const configurationPath = join(configDir, "configuration.json");
|
|
11
|
-
const relativeConfigurationPath = relative(baseDir, configurationPath);
|
|
12
7
|
const config = {
|
|
13
8
|
resolve: {
|
|
14
|
-
alias: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
alias: getAlias({
|
|
10
|
+
configuration: intlayerConfig,
|
|
11
|
+
formatter: (value) => resolve(value)
|
|
12
|
+
// get absolute path
|
|
13
|
+
})
|
|
18
14
|
},
|
|
19
15
|
externals: {
|
|
20
16
|
esbuild: "esbuild",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport merge from 'deepmerge';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport merge from 'deepmerge';\nimport { resolve } from 'path';\nimport type { Configuration as WebpackConfig } from 'webpack';\n\nexport const mergeConfig = (baseConfig: WebpackConfig): WebpackConfig => {\n const intlayerConfig = getConfiguration();\n\n const config = {\n resolve: {\n alias: getAlias({\n configuration: intlayerConfig,\n formatter: (value: string) => resolve(value), // get absolute path\n }),\n },\n externals: {\n esbuild: 'esbuild',\n module: 'module',\n fs: 'fs',\n chokidar: 'chokidar',\n fsevents: 'fsevents',\n },\n module: {\n rules: [\n {\n test: /\\.node$/,\n loader: 'node-loader',\n },\n ],\n },\n plugins: [new IntlayerPlugin()],\n };\n\n return merge(baseConfig, config);\n};\n"],"mappings":"AAAA,SAAS,UAAU,wBAAwB;AAC3C,SAAS,sBAAsB;AAC/B,OAAO,WAAW;AAClB,SAAS,eAAe;AAGjB,MAAM,cAAc,CAAC,eAA6C;AACvE,QAAM,iBAAiB,iBAAiB;AAExC,QAAM,SAAS;AAAA,IACb,SAAS;AAAA,MACP,OAAO,SAAS;AAAA,QACd,eAAe;AAAA,QACf,WAAW,CAAC,UAAkB,QAAQ,KAAK;AAAA;AAAA,MAC7C,CAAC;AAAA,IACH;AAAA,IACA,WAAW;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,UAAU;AAAA,MACV,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,OAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS,CAAC,IAAI,eAAe,CAAC;AAAA,EAChC;AAEA,SAAO,MAAM,YAAY,MAAM;AACjC;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeConfig.d.ts","sourceRoot":"","sources":["../../../src/webpack/mergeConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAE9D,eAAO,MAAM,WAAW,GAAI,YAAY,aAAa,KAAG,
|
|
1
|
+
{"version":3,"file":"mergeConfig.d.ts","sourceRoot":"","sources":["../../../src/webpack/mergeConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAE9D,eAAO,MAAM,WAAW,GAAI,YAAY,aAAa,KAAG,aA6BvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6-canary.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"deepmerge": "^4.3.1",
|
|
71
71
|
"js-cookie": "^3.0.5",
|
|
72
72
|
"uuid": "^11.1.0",
|
|
73
|
-
"@intlayer/
|
|
74
|
-
"@intlayer/
|
|
75
|
-
"@intlayer/
|
|
76
|
-
"@intlayer/
|
|
77
|
-
"@intlayer/
|
|
78
|
-
"@intlayer/
|
|
73
|
+
"@intlayer/chokidar": "6.1.6-canary.0",
|
|
74
|
+
"@intlayer/config": "6.1.6-canary.0",
|
|
75
|
+
"@intlayer/core": "6.1.6-canary.0",
|
|
76
|
+
"@intlayer/dictionaries-entry": "6.1.6-canary.0",
|
|
77
|
+
"@intlayer/editor": "6.1.6-canary.0",
|
|
78
|
+
"@intlayer/webpack": "6.1.6-canary.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@types/node": "^24.5.2",
|
|
@@ -89,19 +89,19 @@
|
|
|
89
89
|
"tsup": "^8.5.0",
|
|
90
90
|
"typescript": "^5.9.2",
|
|
91
91
|
"vitest": "^3.2.4",
|
|
92
|
+
"@utils/ts-config": "1.0.4",
|
|
92
93
|
"@utils/eslint-config": "1.0.4",
|
|
93
94
|
"@utils/ts-config-types": "1.0.4",
|
|
94
|
-
"@utils/ts-config": "1.0.4",
|
|
95
95
|
"@utils/tsup-config": "1.0.4"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
99
99
|
"@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
100
100
|
"rxjs": "^6.0.0 || ^7.0.0",
|
|
101
|
-
"@intlayer/chokidar": "6.1.
|
|
102
|
-
"@intlayer/core": "6.1.
|
|
103
|
-
"@intlayer/
|
|
104
|
-
"@intlayer/
|
|
101
|
+
"@intlayer/chokidar": "6.1.6-canary.0",
|
|
102
|
+
"@intlayer/core": "6.1.6-canary.0",
|
|
103
|
+
"@intlayer/dictionaries-entry": "6.1.6-canary.0",
|
|
104
|
+
"@intlayer/config": "6.1.6-canary.0"
|
|
105
105
|
},
|
|
106
106
|
"engines": {
|
|
107
107
|
"node": ">=14.18"
|