@tsslint/core 1.0.18 → 1.0.19

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/lib/watch.js +2 -2
  2. package/package.json +3 -3
package/lib/watch.js CHANGED
@@ -13,7 +13,7 @@ async function watchConfigFile(configFilePath, onBuild, watch = true, createHash
13
13
  let config;
14
14
  if (!result.errors.length) {
15
15
  try {
16
- config = (await import(outFile + '?time=' + Date.now())).default;
16
+ config = (await import('file://' + outFile + '?time=' + Date.now())).default;
17
17
  }
18
18
  catch (e) {
19
19
  result.errors.push({ text: String(e) });
@@ -48,7 +48,7 @@ async function watchConfigFile(configFilePath, onBuild, watch = true, createHash
48
48
  const maybeJsPath = require.resolve(path, { paths: [resolveDir] });
49
49
  if (maybeJsPath !== path && !maybeJsPath.endsWith('.ts')) {
50
50
  return {
51
- path: 'file://' + maybeJsPath,
51
+ path: maybeJsPath,
52
52
  external: true,
53
53
  };
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/core",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,11 +12,11 @@
12
12
  "directory": "packages/core"
13
13
  },
14
14
  "dependencies": {
15
- "@tsslint/types": "1.0.18",
15
+ "@tsslint/types": "1.0.19",
16
16
  "error-stack-parser": "^2.1.4",
17
17
  "esbuild": "^0.23.0",
18
18
  "minimatch": "^10.0.1",
19
19
  "source-map-support": "^0.5.21"
20
20
  },
21
- "gitHead": "95545c63940a9b57651c785cf4d730d6c3d22b99"
21
+ "gitHead": "fbb15b9115e3106a7c8d336023883ea5273cbe65"
22
22
  }