@mapomodule/core 2.0.0-beta.3 → 2.0.0-beta.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,WAAW,EACX,cAAc,EACd,eAAe,EACf,WAAW,EACX,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC9E,YAAY,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;;AAEzE,wBAwEqC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,WAAW,EACX,cAAc,EACd,eAAe,EACf,WAAW,EACX,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC9E,YAAY,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;;AAEzE,wBAkFqC"}
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapomodule/core",
3
3
  "configKey": "mapoCore",
4
- "version": "2.0.0-beta.3",
4
+ "version": "2.0.0-beta.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -17,6 +17,11 @@ const module$1 = defineNuxtModule({
17
17
  defaults: MAPO_DEFAULTS,
18
18
  async setup(options, nuxt) {
19
19
  const resolver = createResolver(import.meta.url);
20
+ nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
21
+ nuxt.options.imports.transform ??= {};
22
+ (nuxt.options.imports.transform.include ??= []).push(
23
+ /@mapomodule[\\/]core[\\/]/
24
+ );
20
25
  addTypeTemplate({
21
26
  filename: "types/mapo-core-page-meta.d.ts",
22
27
  getContents: () => readFileSync(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapomodule/core",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Mapo core: API layer, auth, composables, middleware",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "lint": "eslint src"
47
47
  },
48
48
  "dependencies": {
49
- "@mapomodule/store": "2.0.0-beta.3",
49
+ "@mapomodule/store": "2.0.0-beta.4",
50
50
  "@mapomodule/utils": "2.0.0-beta.1"
51
51
  },
52
52
  "peerDependencies": {
package/src/module.ts CHANGED
@@ -40,6 +40,16 @@ export default defineNuxtModule<MapoOptions>({
40
40
  async setup(options, nuxt) {
41
41
  const resolver = createResolver(import.meta.url);
42
42
 
43
+ // In consuming apps this runtime lives inside node_modules, where Nuxt
44
+ // skips auto-import injection by default (workspace apps are unaffected:
45
+ // pnpm symlinks resolve outside node_modules). Opt back in and transpile
46
+ // the runtime for the SSR build.
47
+ nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
48
+ nuxt.options.imports.transform ??= {};
49
+ (nuxt.options.imports.transform.include ??= []).push(
50
+ /@mapomodule[\\/]core[\\/]/,
51
+ );
52
+
43
53
  addTypeTemplate({
44
54
  filename: "types/mapo-core-page-meta.d.ts",
45
55
  getContents: () =>