@makano/rew 1.2.85 → 1.2.86

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.
@@ -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": {