@jsenv/core 27.0.0-alpha.20 → 27.0.0-alpha.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "27.0.0-alpha.20",
3
+ "version": "27.0.0-alpha.21",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -11,7 +11,8 @@
11
11
  "node": ">=16.13.0"
12
12
  },
13
13
  "publishConfig": {
14
- "access": "public"
14
+ "access": "public",
15
+ "registry": "https://registry.npmjs.org"
15
16
  },
16
17
  "type": "module",
17
18
  "imports": {},
@@ -31,7 +32,7 @@
31
32
  "./packages/*"
32
33
  ],
33
34
  "scripts": {
34
- "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
35
+ "eslint": "npx eslint ./test/dev_server/manual/main/importmap_inline/ --ext=.js,.mjs,.cjs,.html",
35
36
  "build": "node ./script/build/build.mjs",
36
37
  "test": "node ./script/test/test.mjs",
37
38
  "test-with-coverage": "npm run test -- --coverage",
@@ -63,7 +64,7 @@
63
64
  "@jsenv/integrity": "0.0.1",
64
65
  "@jsenv/log": "1.5.1",
65
66
  "@jsenv/logger": "4.0.1",
66
- "@jsenv/node-esm-resolution": "0.0.2",
67
+ "@jsenv/node-esm-resolution": "0.0.4",
67
68
  "@jsenv/server": "12.6.1",
68
69
  "@jsenv/uneval": "1.6.0",
69
70
  "@jsenv/utils": "1.4.0",
@@ -110,4 +111,4 @@
110
111
  "redux": "4.1.2",
111
112
  "rollup": "2.70.1"
112
113
  }
113
- }
114
+ }
@@ -4,6 +4,7 @@ import {
4
4
  isFileSystemPath,
5
5
  fileSystemPathToUrl,
6
6
  moveUrl,
7
+ ensureWindowsDriveLetter,
7
8
  } from "@jsenv/filesystem"
8
9
  import { createDetailedMessage } from "@jsenv/logger"
9
10
 
@@ -772,7 +773,8 @@ const determineFileUrlForOutDirectory = ({ urlInfo, context }) => {
772
773
  }
773
774
  let url = urlInfo.url
774
775
  if (!urlIsInsideOf(urlInfo.url, context.rootDirectoryUrl)) {
775
- url = `${context.rootDirectoryUrl}@fs/${url.slice("file:///".length)}`
776
+ const fsRootUrl = ensureWindowsDriveLetter("file:///", urlInfo.url)
777
+ url = `${context.rootDirectoryUrl}@fs/${url.slice(fsRootUrl.length)}`
776
778
  }
777
779
  if (urlInfo.filename) {
778
780
  url = setUrlFilename(url, urlInfo.filename)