@minnai/create-aura-app 0.0.15 → 0.0.16

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": "@minnai/create-aura-app",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "Scaffolding tool for new Aura projects",
5
5
  "bin": "dist/index.js",
6
6
  "files": [
@@ -12,11 +12,13 @@ export const registerExampleAIRs = () => {
12
12
  // The Standard AIRs export a wrapper object { manifest, resources, component }
13
13
  // We need to flatten this to match AIRManifest { id, meta, component }
14
14
  [TasksAIR, YouTubeAIR].forEach((air: any) => {
15
- if (LOCAL_AIRS.includes(air.manifest.id)) {
15
+ // Core AIRs are exported as { manifest, resources, component }
16
+ const airData = air.default || air;
17
+ if (LOCAL_AIRS.includes(airData.manifest.id)) {
16
18
  atmosphere.register({
17
- ...air.manifest,
18
- component: air.component,
19
- resources: air.resources
19
+ ...airData.manifest,
20
+ component: airData.component,
21
+ resources: airData.resources
20
22
  });
21
23
  }
22
24
  });
@@ -271,6 +271,13 @@ export default {
271
271
  }
272
272
  }
273
273
  ],
274
+ resolve: {
275
+ alias: {
276
+ 'react': path.resolve(__dirname, './node_modules/react'),
277
+ 'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
278
+ },
279
+ dedupe: ['react', 'react-dom']
280
+ },
274
281
  server: {
275
282
  port: 5175
276
283
  }