@constatic/base 0.0.1-beta.2 → 0.0.1-beta.3

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 (2) hide show
  1. package/dist/modules.js +3 -2
  2. package/package.json +1 -1
package/dist/modules.js CHANGED
@@ -1,9 +1,10 @@
1
1
  // src/modules.ts
2
2
  import { glob } from "node:fs/promises";
3
+ import path from "node:path";
3
4
  async function loadModules(meta, modules = []) {
4
- const exclude = modules.filter((path) => path.startsWith("!")).map((path) => path.slice(1));
5
+ const exclude = modules.filter((path2) => path2.charAt(0) == "!").map((path2) => path2.slice(1));
5
6
  const filepaths = await Array.fromAsync(glob(modules, { cwd: meta.dirname, exclude }));
6
- const promises = filepaths.map((filepath) => import(meta.resolve(filepath)).then((imported) => ({
7
+ const promises = filepaths.map((filepath) => import(path.join(meta.dirname, filepath)).then((imported) => ({
7
8
  module: imported,
8
9
  filepath
9
10
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constatic/base",
3
- "version": "0.0.1-beta.2",
3
+ "version": "0.0.1-beta.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",