pmcf 1.54.11 → 1.54.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.54.11",
3
+ "version": "1.54.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
39
39
  },
40
40
  "dependencies": {
41
- "npm-pkgbuild": "^17.0.2",
41
+ "npm-pkgbuild": "^17.1.0",
42
42
  "pacc": "^3.3.0",
43
43
  "pkg-dir": "^8.0.0"
44
44
  },
@@ -0,0 +1,20 @@
1
+ config_locales()
2
+ {
3
+ jq -r .locales[] /etc/location/location.json|while read locale
4
+ do
5
+ sed -i -e "s/^#$locale/$locale/" /etc/locale.gen
6
+ done
7
+
8
+ locale-gen
9
+ localectl set-locale LANG=$(jq -r .locales[0] /etc/location/location.json)
10
+ }
11
+
12
+ post_install()
13
+ {
14
+ config_locales
15
+ }
16
+
17
+ post_upgrade()
18
+ {
19
+ config_locales
20
+ }
package/src/location.mjs CHANGED
@@ -90,6 +90,14 @@ export class Location extends Owner {
90
90
  ];
91
91
  properties.replaces = [`mf-location-${this.name}`];
92
92
 
93
+ const install = "location.install";
94
+ await copyFile(
95
+ new URL(install, import.meta.url),
96
+ join(stagingDir, install)
97
+ );
98
+
99
+ properties.install = install;
100
+
93
101
  return { properties };
94
102
  }
95
103
  }