@aeriajs/entrypoint 0.0.39 → 0.0.40

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/index.js CHANGED
@@ -1,22 +1,19 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getConfig = exports.getRouter = exports.getCollection = exports.getCollections = exports.getEntrypoint = exports.getEntrypointPath = void 0;
4
+ const path = require("path");
5
+ const fs = require("fs/promises");
7
6
  const common_1 = require("@aeriajs/common");
8
- const path_1 = __importDefault(require("path"));
9
- const promises_1 = __importDefault(require("fs/promises"));
10
7
  let collectionsMemo;
11
8
  const collectionMemo = {};
12
9
  const getEntrypointPath = async () => {
13
10
  if (process.env.AERIA_MAIN) {
14
- return path_1.default.join(process.cwd(), process.env.AERIA_MAIN);
11
+ return path.join(process.cwd(), process.env.AERIA_MAIN);
15
12
  }
16
- const { main, aeriaMain } = JSON.parse(await promises_1.default.readFile(path_1.default.join(process.cwd(), 'package.json'), {
13
+ const { main, aeriaMain } = JSON.parse(await fs.readFile(path.join(process.cwd(), 'package.json'), {
17
14
  encoding: 'utf8',
18
15
  }));
19
- return path_1.default.join(process.cwd(), aeriaMain || main);
16
+ return path.join(process.cwd(), aeriaMain || main);
20
17
  };
21
18
  exports.getEntrypointPath = getEntrypointPath;
22
19
  const getEntrypoint = async () => {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
+ import * as path from "path";
3
+ import * as fs from "fs/promises";
2
4
  import { dynamicImport } from "@aeriajs/common";
3
- import path from "path";
4
- import fs from "fs/promises";
5
5
  let collectionsMemo;
6
6
  const collectionMemo = {};
7
7
  export const getEntrypointPath = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/entrypoint",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,8 +26,8 @@
26
26
  "@aeriajs/types": "link:../types"
27
27
  },
28
28
  "peerDependencies": {
29
- "@aeriajs/common": "^0.0.39",
30
- "@aeriajs/types": "^0.0.36"
29
+ "@aeriajs/common": "^0.0.40",
30
+ "@aeriajs/types": "^0.0.37"
31
31
  },
32
32
  "scripts": {
33
33
  "test": "echo skipping",