aeria-sdk 0.0.93 → 0.0.95

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/dist/mirror.js CHANGED
@@ -116,7 +116,14 @@ const writeMirrorFiles = async (mirror, config) => {
116
116
  const esm = (0, exports.runtimeEsm)(config);
117
117
  for (const mirrorPath of mirrorPaths) {
118
118
  const syntheticRequire = (0, module_1.createRequire)(path.join(path.dirname(path.resolve(mirrorPath)), 'node_modules'));
119
- const resolvedPath = syntheticRequire.resolve('aeria-sdk');
119
+ let resolvedPath;
120
+ try {
121
+ resolvedPath = syntheticRequire.resolve('aeria-sdk');
122
+ }
123
+ catch (err) {
124
+ console.log(`couldn't locate node_modules in "${mirrorPath}"`);
125
+ continue;
126
+ }
120
127
  const runtimeBase = path.dirname(resolvedPath);
121
128
  await (0, promises_1.writeFile)(path.join(mirrorPath, DTS_FILENAME), dts);
122
129
  await (0, promises_1.writeFile)(path.join(runtimeBase, 'runtime.js'), cjs);
package/dist/mirror.mjs CHANGED
@@ -115,7 +115,13 @@ export const writeMirrorFiles = async (mirror, config) => {
115
115
  const esm = runtimeEsm(config);
116
116
  for (const mirrorPath of mirrorPaths) {
117
117
  const syntheticRequire = createRequire(path.join(path.dirname(path.resolve(mirrorPath)), "node_modules"));
118
- const resolvedPath = syntheticRequire.resolve("aeria-sdk");
118
+ let resolvedPath;
119
+ try {
120
+ resolvedPath = syntheticRequire.resolve("aeria-sdk");
121
+ } catch (err) {
122
+ console.log(`couldn't locate node_modules in "${mirrorPath}"`);
123
+ continue;
124
+ }
119
125
  const runtimeBase = path.dirname(resolvedPath);
120
126
  await writeFile(path.join(mirrorPath, DTS_FILENAME), dts);
121
127
  await writeFile(path.join(runtimeBase, "runtime.mjs"), cjs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -60,7 +60,7 @@
60
60
  "@aeriajs/types": "link:../types"
61
61
  },
62
62
  "peerDependencies": {
63
- "@aeriajs/common": "^0.0.66",
63
+ "@aeriajs/common": "^0.0.67",
64
64
  "@aeriajs/types": "^0.0.59"
65
65
  },
66
66
  "scripts": {