@haus-tech/package-size-plugin 0.0.6 → 0.0.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.
|
@@ -13,10 +13,14 @@ let PackageSizePlugin = class PackageSizePlugin {
|
|
|
13
13
|
PackageSizePlugin = __decorate([
|
|
14
14
|
(0, core_1.VendurePlugin)({
|
|
15
15
|
imports: [core_1.PluginCommonModule],
|
|
16
|
-
configuration: config => {
|
|
17
|
-
config.customFields.
|
|
16
|
+
configuration: (config) => {
|
|
17
|
+
config.customFields.ProductVariant.push({
|
|
18
18
|
name: 'packageSize',
|
|
19
|
-
type: 'int'
|
|
19
|
+
type: 'int',
|
|
20
|
+
label: [
|
|
21
|
+
{ languageCode: core_1.LanguageCode.en, value: 'Package Size' },
|
|
22
|
+
{ languageCode: core_1.LanguageCode.sv, value: 'Förpackningsstorlek' },
|
|
23
|
+
],
|
|
20
24
|
});
|
|
21
25
|
return config;
|
|
22
26
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-tech/package-size-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Package size plugin for Vendure",
|
|
5
5
|
"author": "Haus Tech",
|
|
6
6
|
"repository": "https://github.com/WeAreHausTech/haus-tech-vendure-plugins",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"start": "yarn ts-node test/dev-server.ts",
|
|
20
20
|
"build": "rimraf dist && tsc",
|
|
21
|
-
"test": "jest --preset=\"ts-jest\""
|
|
21
|
+
"test": "jest --preset=\"ts-jest\"",
|
|
22
|
+
"prepublishOnly": "yarn && yarn build"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {}
|
|
24
25
|
}
|