@densetsuuu/docteur 0.1.1-beta.4 → 0.1.1-beta.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.
@@ -10,7 +10,6 @@
10
10
  import { fork } from 'node:child_process';
11
11
  import { existsSync } from 'node:fs';
12
12
  import { join } from 'node:path';
13
- import { pathToFileURL } from 'node:url';
14
13
  import { ProfileCollector } from './collector.js';
15
14
  import { simplifyUrl } from '#profiler/reporters/format';
16
15
  const TIMEOUT_MS = 30_000;
@@ -42,7 +41,7 @@ function runProfiledProcess(loaderPath, entryPoint, cwd, options) {
42
41
  parents: new Map(),
43
42
  done: false,
44
43
  };
45
- const child = fork(pathToFileURL(entryPoint).href, [], {
44
+ const child = fork(entryPoint, [], {
46
45
  cwd,
47
46
  stdio: ['pipe', 'pipe', 'pipe', 'ipc'],
48
47
  execArgv: ['--import', loaderPath, '--import', '@poppinss/ts-exec', '--no-warnings'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@densetsuuu/docteur",
3
3
  "description": "AdonisJS cold start profiler - analyze and optimize your application boot time",
4
- "version": "0.1.1-beta.4",
4
+ "version": "0.1.1-beta.5",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
7
7
  },
@@ -30,7 +30,7 @@
30
30
  "typecheck": "tsc --noEmit",
31
31
  "lint": "eslint .",
32
32
  "format": "prettier --write .",
33
- "quick:test": "node --import=./tsnode.esm.js --enable-source-maps bin/test.ts",
33
+ "quick:test": "node --conditions=development --import=./tsnode.esm.js --enable-source-maps bin/test.ts",
34
34
  "pretest": "npm run lint",
35
35
  "test": "c8 npm run quick:test",
36
36
  "prebuild": "npm run lint && npm run clean",
@@ -93,10 +93,22 @@
93
93
  }
94
94
  },
95
95
  "imports": {
96
- "#registries/*": "./build/src/registries/*.js",
97
- "#types": "./build/src/types.js",
98
- "#profiler/*": "./build/src/profiler/*.js",
99
- "#xray/*": "./build/src/xray/*.js"
96
+ "#registries/*": {
97
+ "development": "./src/registries/*.js",
98
+ "default": "./build/src/registries/*.js"
99
+ },
100
+ "#types": {
101
+ "development": "./src/types.js",
102
+ "default": "./build/src/types.js"
103
+ },
104
+ "#profiler/*": {
105
+ "development": "./src/profiler/*.js",
106
+ "default": "./build/src/profiler/*.js"
107
+ },
108
+ "#xray/*": {
109
+ "development": "./src/xray/*.js",
110
+ "default": "./build/src/xray/*.js"
111
+ }
100
112
  },
101
113
  "publishConfig": {
102
114
  "access": "public",