@lingo.dev/_compiler 0.1.8 → 0.1.9
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/build/index.cjs +3 -5
- package/build/index.mjs +3 -5
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var _unplugin = require('unplugin');
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@lingo.dev/_compiler",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.9",
|
|
8
8
|
description: "Lingo.dev Compiler",
|
|
9
9
|
private: false,
|
|
10
10
|
publishConfig: {
|
|
@@ -2356,10 +2356,8 @@ var unplugin = _unplugin.createUnplugin.call(void 0,
|
|
|
2356
2356
|
const result = _lodash2.default.chain({
|
|
2357
2357
|
code,
|
|
2358
2358
|
params,
|
|
2359
|
-
fileKey: path.default.relative(
|
|
2360
|
-
|
|
2361
|
-
id
|
|
2362
|
-
)
|
|
2359
|
+
fileKey: path.default.relative(path.default.resolve(process.cwd(), params.sourceRoot), id).split(path.default.sep).join("/")
|
|
2360
|
+
// Always normalize for consistent dictionaries
|
|
2363
2361
|
}).thru(createPayload).thru(
|
|
2364
2362
|
composeMutations(
|
|
2365
2363
|
i18n_directive_default,
|
package/build/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { createUnplugin } from "unplugin";
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@lingo.dev/_compiler",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.9",
|
|
8
8
|
description: "Lingo.dev Compiler",
|
|
9
9
|
private: false,
|
|
10
10
|
publishConfig: {
|
|
@@ -2356,10 +2356,8 @@ var unplugin = createUnplugin(
|
|
|
2356
2356
|
const result = _11.chain({
|
|
2357
2357
|
code,
|
|
2358
2358
|
params,
|
|
2359
|
-
fileKey: path5.relative(
|
|
2360
|
-
|
|
2361
|
-
id
|
|
2362
|
-
)
|
|
2359
|
+
fileKey: path5.relative(path5.resolve(process.cwd(), params.sourceRoot), id).split(path5.sep).join("/")
|
|
2360
|
+
// Always normalize for consistent dictionaries
|
|
2363
2361
|
}).thru(createPayload).thru(
|
|
2364
2362
|
composeMutations(
|
|
2365
2363
|
i18n_directive_default,
|