@nsxbet/admin-sdk 0.9.1 → 0.9.2

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.
@@ -2,4 +2,4 @@
2
2
  * Semver of @nsxbet/admin-sdk (synced from package.json by scripts/write-sdk-version.mjs).
3
3
  * Do not edit manually — run `node scripts/write-sdk-version.mjs` after version bumps.
4
4
  */
5
- export const SDK_PACKAGE_VERSION = "0.9.1";
5
+ export const SDK_PACKAGE_VERSION = "0.9.2";
@@ -134,10 +134,14 @@ export function adminModule(options = {}) {
134
134
  }
135
135
  const buildConfigPlugin = {
136
136
  name: "admin-module-build-config",
137
- config(_config, { command }) {
137
+ config(_config, { command, mode }) {
138
138
  if (command !== "build" || !isModuleBuild())
139
139
  return;
140
140
  return {
141
+ define: {
142
+ "process.env": {},
143
+ "process.env.NODE_ENV": JSON.stringify(mode === "development" ? "development" : "production"),
144
+ },
141
145
  build: {
142
146
  outDir,
143
147
  emptyOutDir: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsxbet/admin-sdk",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "SDK for building NSX Admin modules with integrated shell",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",