@baeta/plugin-graphql 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -296,7 +296,7 @@ function buildModule(name, doc, {
296
296
  function printMetadata() {
297
297
  return `export namespace ModuleMetadata {
298
298
  export const id = '${name}';
299
- export const dirname = __dirname;
299
+ export const dirname = './${name}';
300
300
  export const typedef = ${JSON.stringify(doc)} as unknown as DocumentNode;
301
301
  ${printBaetaManager()}
302
302
  }`;
package/index.js CHANGED
@@ -281,7 +281,7 @@ function buildModule(name, doc, {
281
281
  function printMetadata() {
282
282
  return `export namespace ModuleMetadata {
283
283
  export const id = '${name}';
284
- export const dirname = __dirname;
284
+ export const dirname = './${name}';
285
285
  export const typedef = ${JSON.stringify(doc)} as unknown as DocumentNode;
286
286
  ${printBaetaManager()}
287
287
  }`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baeta/plugin-graphql",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "prepack": "yarn prep --move dist",