wexample-wex-addon-dev-javascript 8.12.0__py3-none-any.whl → 8.13.1__py3-none-any.whl
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.
- wexample_wex_addon_dev_javascript/services/node/commands/service/refresh_lock.py +13 -0
- {wexample_wex_addon_dev_javascript-8.12.0.dist-info → wexample_wex_addon_dev_javascript-8.13.1.dist-info}/METADATA +3 -3
- {wexample_wex_addon_dev_javascript-8.12.0.dist-info → wexample_wex_addon_dev_javascript-8.13.1.dist-info}/RECORD +5 -5
- {wexample_wex_addon_dev_javascript-8.12.0.dist-info → wexample_wex_addon_dev_javascript-8.13.1.dist-info}/WHEEL +0 -0
- {wexample_wex_addon_dev_javascript-8.12.0.dist-info → wexample_wex_addon_dev_javascript-8.13.1.dist-info}/entry_points.txt +0 -0
|
@@ -72,6 +72,18 @@ fi
|
|
|
72
72
|
"""
|
|
73
73
|
|
|
74
74
|
context.io.log(f"Refreshing javascript lock file ({npm_packages})…")
|
|
75
|
+
# The variables the app's .npmrc reads (`_authToken=${SOME_TOKEN}`), from
|
|
76
|
+
# the app's environment: a throwaway container has none of its own.
|
|
77
|
+
import re
|
|
78
|
+
|
|
79
|
+
npmrc = service.app_workdir.get_path() / ".npmrc"
|
|
80
|
+
npmrc_environment = {
|
|
81
|
+
name: value
|
|
82
|
+
for name in (
|
|
83
|
+
re.findall(r"\$\{([A-Z0-9_]+)\}", npmrc.read_text()) if npmrc.is_file() else []
|
|
84
|
+
)
|
|
85
|
+
if (value := service.app_workdir.get_env_parameter(name, default=None))
|
|
86
|
+
}
|
|
75
87
|
output = service.exec_or_run(
|
|
76
88
|
["/bin/sh", "-c", script],
|
|
77
89
|
image=NODE_LOCK_IMAGE,
|
|
@@ -79,6 +91,7 @@ fi
|
|
|
79
91
|
# A lock refresh builds nothing: the throwaway container runs no
|
|
80
92
|
# package script, which may need what only the app's image has.
|
|
81
93
|
env={
|
|
94
|
+
**npmrc_environment,
|
|
82
95
|
"COREPACK_HOME": "/tmp/corepack",
|
|
83
96
|
"COREPACK_ENABLE_DOWNLOAD_PROMPT": "0",
|
|
84
97
|
"YARN_IGNORE_SCRIPTS": "true",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-wex-addon-dev-javascript
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.13.1
|
|
4
4
|
Summary: Extends wex with JavaScript support: enforces JS/TS project layout and symlinks local npm packages into node_modules
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -14,7 +14,7 @@ Requires-Dist: cattrs>=23.1.0
|
|
|
14
14
|
Requires-Dist: wexample-api>=6.8.0
|
|
15
15
|
Requires-Dist: wexample-filestate-javascript>=6.6.0
|
|
16
16
|
Requires-Dist: wexample-wex-addon-ai>=19.1.0
|
|
17
|
-
Requires-Dist: wexample-wex-addon-app>=34.
|
|
17
|
+
Requires-Dist: wexample-wex-addon-app>=34.14.0
|
|
18
18
|
Provides-Extra: dev
|
|
19
19
|
Requires-Dist: pytest; extra == "dev"
|
|
20
20
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
|
|
23
23
|
# wex_addon_dev_javascript
|
|
24
24
|
|
|
25
|
-
Version: 8.
|
|
25
|
+
Version: 8.13.1
|
|
26
26
|
|
|
27
27
|
Extends wex with JavaScript support: enforces JS/TS project layout and symlinks local npm packages into node_modules
|
|
28
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
wexample_wex_addon_dev_javascript-8.
|
|
2
|
-
wexample_wex_addon_dev_javascript-8.
|
|
3
|
-
wexample_wex_addon_dev_javascript-8.
|
|
1
|
+
wexample_wex_addon_dev_javascript-8.13.1.dist-info/METADATA,sha256=A1q4ZsBPjBOK9DAKZNPlqBIeP2gs6FvtkBwJyY8ZH_k,3403
|
|
2
|
+
wexample_wex_addon_dev_javascript-8.13.1.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
|
|
3
|
+
wexample_wex_addon_dev_javascript-8.13.1.dist-info/entry_points.txt,sha256=WwYdg3RL2Ey1fg4JNNkcQxZcQRgZSgPLLzSDi6lbYgI,143
|
|
4
4
|
wexample_wex_addon_dev_javascript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
wexample_wex_addon_dev_javascript/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
wexample_wex_addon_dev_javascript/common/npm_registry_gateway.py,sha256=jcAIOZN1eiPeRSjradY095VI93ne86ijbVAZcXzCKpQ,2742
|
|
@@ -28,7 +28,7 @@ wexample_wex_addon_dev_javascript/services/node/__init__.py,sha256=47DEQpj8HBSa-
|
|
|
28
28
|
wexample_wex_addon_dev_javascript/services/node/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
wexample_wex_addon_dev_javascript/services/node/commands/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
wexample_wex_addon_dev_javascript/services/node/commands/service/install_local.py,sha256=U4WjWabvGhlET5zocCfKIT-1WwQJbRK0GOGD7krwTnE,3283
|
|
31
|
-
wexample_wex_addon_dev_javascript/services/node/commands/service/refresh_lock.py,sha256=
|
|
31
|
+
wexample_wex_addon_dev_javascript/services/node/commands/service/refresh_lock.py,sha256=zBvS17vE8bTJJxZ6ATFQt5zAq2EweSmJSaRe04qGrHk,3433
|
|
32
32
|
wexample_wex_addon_dev_javascript/services/node/docker/.wex.yml,sha256=JdIF6nGkFcfi76yZYGlXxeWfOK4eAUSV_gAn6i3hk2w,32
|
|
33
33
|
wexample_wex_addon_dev_javascript/services/node/docker/docker-compose.yml,sha256=joejn22luhTK0U2vRMh52NjeWidu1EswuUdfKeb7GEM,371
|
|
34
34
|
wexample_wex_addon_dev_javascript/services/node/service.yml,sha256=jPLW-E4ymVaEnTwdTjVvTJNx04pwMGN4twxeOuN37mo,95
|
|
@@ -50,4 +50,4 @@ wexample_wex_addon_dev_javascript/workdir/__init__.py,sha256=47DEQpj8HBSa-_TImW-
|
|
|
50
50
|
wexample_wex_addon_dev_javascript/workdir/javascript_package_workdir.py,sha256=U0gf0Zgj0k34yfoARFLmbcm9f7hXxbo7RPSHNgSSUa8,25009
|
|
51
51
|
wexample_wex_addon_dev_javascript/workdir/javascript_packages_suite_workdir.py,sha256=b0QoTWlNYOYfpqEb8vYzL4WRoY0WwBhYOFUoRc4oySI,928
|
|
52
52
|
wexample_wex_addon_dev_javascript/workdir/javascript_workdir.py,sha256=EFY0-500y9PKeLtZIvI-q53n-EfNiHCpKnkmWm-q68w,9948
|
|
53
|
-
wexample_wex_addon_dev_javascript-8.
|
|
53
|
+
wexample_wex_addon_dev_javascript-8.13.1.dist-info/RECORD,,
|
|
File without changes
|