@jsenv/core 27.0.0-alpha.19 → 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.19",
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": {
@@ -32,7 +32,7 @@
32
32
  "./packages/*"
33
33
  ],
34
34
  "scripts": {
35
- "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
35
+ "eslint": "npx eslint ./test/dev_server/manual/main/importmap_inline/ --ext=.js,.mjs,.cjs,.html",
36
36
  "build": "node ./script/build/build.mjs",
37
37
  "test": "node ./script/test/test.mjs",
38
38
  "test-with-coverage": "npm run test -- --coverage",
@@ -64,7 +64,7 @@
64
64
  "@jsenv/integrity": "0.0.1",
65
65
  "@jsenv/log": "1.5.1",
66
66
  "@jsenv/logger": "4.0.1",
67
- "@jsenv/node-esm-resolution": "0.0.2",
67
+ "@jsenv/node-esm-resolution": "0.0.4",
68
68
  "@jsenv/server": "12.6.1",
69
69
  "@jsenv/uneval": "1.6.0",
70
70
  "@jsenv/utils": "1.4.0",
@@ -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)
@@ -109,7 +109,7 @@ const visitHtmlUrls = ({ url, htmlAst, onUrl }) => {
109
109
  attributeName: "href",
110
110
  expectedContentType: type,
111
111
  expectedType: {
112
- manifest: "manifest",
112
+ manifest: "webmanifest",
113
113
  modulepreload: "js_module",
114
114
  stylesheet: "css",
115
115
  }[rel],