@makano/rew 1.2.85 → 1.2.86

Sign up to get free protection for your applications and to get access to all the features.
@@ -149,6 +149,16 @@ module.exports.prepareContext = function (
149
149
  }
150
150
  }
151
151
 
152
+ if(!context.app){
153
+ context.appPackage = (packageName) => context.app = { config: { manifest: { package: packageName } } }
154
+ }
155
+
156
+ Object.defineProperty(context, 'packageName', {
157
+ get: () => context.app?.config?.manifest?.package,
158
+ enumerable: true,
159
+ configurable: true
160
+ });
161
+
152
162
  if (
153
163
  context.module.main ||
154
164
  (options.fromMain == true && options.as == "main")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makano/rew",
3
- "version": "1.2.85",
3
+ "version": "1.2.86",
4
4
  "description": "A simple coffescript runtime and app manager",
5
5
  "main": "main.js",
6
6
  "directories": {