@aeriajs/cli 0.0.157 → 0.0.158

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/compile.js CHANGED
@@ -4,7 +4,7 @@ import * as path from 'path';
4
4
  import * as transpile from './transpile.js';
5
5
  import { fileURLToPath } from 'url';
6
6
  import { readFile } from 'fs/promises';
7
- import { glob } from 'glob';
7
+ import { glob } from 'fs/promises';
8
8
  import { Result } from '@aeriajs/types';
9
9
  import { deepMerge } from '@aeriajs/common';
10
10
  import { log } from './log.js';
@@ -57,10 +57,10 @@ export const getTsconfig = async (additionalOptions) => {
57
57
  return tsConfig;
58
58
  };
59
59
  export const compile = async (additionalOptions) => {
60
- const fileList = await glob('**/*.ts', {
61
- ignore: ['node_modules/**/*.ts'],
62
- dot: true,
63
- });
60
+ const fileList = await Array.fromAsync(glob([
61
+ '!(node_modules|dist)/**/*.ts',
62
+ '.**/*.ts',
63
+ ]));
64
64
  const tsConfig = await getTsconfig(additionalOptions);
65
65
  const selectedFiles = fileList.filter((file) => {
66
66
  const testFile = (exp) => new RegExp(exp.replace('*', '([^\/]+)')).test(file.split(path.sep).join('/'));
package/dist/transpile.js CHANGED
@@ -1,9 +1,7 @@
1
1
  import * as esbuild from 'esbuild';
2
- import { glob } from 'glob';
2
+ import { glob } from 'fs/promises';
3
3
  export const init = async (options = {}) => {
4
- const fileList = await glob('src/**/*.ts', {
5
- dot: true,
6
- });
4
+ const fileList = await Array.fromAsync(glob('src/**/*.ts'));
7
5
  const ctx = await esbuild.context(Object.assign({
8
6
  entryPoints: fileList,
9
7
  platform: 'node',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aeriajs/cli",
3
3
  "type": "module",
4
- "version": "0.0.157",
4
+ "version": "0.0.158",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -20,6 +20,9 @@
20
20
  "bin",
21
21
  "dist"
22
22
  ],
23
+ "engines": {
24
+ "node": ">=22"
25
+ },
23
26
  "keywords": [],
24
27
  "author": "",
25
28
  "license": "ISC",
@@ -27,7 +30,6 @@
27
30
  "chokidar": "^3.6.0",
28
31
  "dotenv": "^16.4.5",
29
32
  "esbuild": "^0.20.2",
30
- "glob": "^10.3.10",
31
33
  "json5": "^2.2.3"
32
34
  },
33
35
  "devDependencies": {