@tsslint/core 1.1.3 → 1.1.4
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/lib/watch.js +1 -4
- package/package.json +3 -3
package/lib/watch.js
CHANGED
|
@@ -26,8 +26,6 @@ async function watchConfigFile(configFilePath, onBuild, watch = true, createHash
|
|
|
26
26
|
logger.log(`Built ${_path.relative(process.cwd(), configFilePath)} in ${t1}ms, loaded ${config ? 'successfully' : 'with errors'} in ${t2}ms`);
|
|
27
27
|
onBuild(config, result);
|
|
28
28
|
};
|
|
29
|
-
const cacheDir = _path.resolve(outDir, 'http_resources');
|
|
30
|
-
const cachePathToOriginalPath = new Map();
|
|
31
29
|
const ctx = await esbuild.context({
|
|
32
30
|
entryPoints: [configFilePath],
|
|
33
31
|
bundle: true,
|
|
@@ -42,8 +40,7 @@ async function watchConfigFile(configFilePath, onBuild, watch = true, createHash
|
|
|
42
40
|
start = Date.now();
|
|
43
41
|
});
|
|
44
42
|
build.onResolve({ filter: /^https?:\/\// }, async ({ path: url }) => {
|
|
45
|
-
const cachePath = _path.join(
|
|
46
|
-
cachePathToOriginalPath.set(cachePath, url);
|
|
43
|
+
const cachePath = _path.join(outDir, url.split('://')[0], ...url.split('://')[1].split('/'));
|
|
47
44
|
if (!fs.existsSync(cachePath)) {
|
|
48
45
|
console.time('Download ' + url);
|
|
49
46
|
const response = await fetch(url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
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.1.
|
|
15
|
+
"@tsslint/types": "1.1.4",
|
|
16
16
|
"error-stack-parser": "^2.1.4",
|
|
17
17
|
"esbuild": ">=0.17.0",
|
|
18
18
|
"minimatch": "^10.0.1",
|
|
19
19
|
"source-map-support": "^0.5.21"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "03d4e7480fc96c6322d436d34a4af73cb5bc25f2"
|
|
22
22
|
}
|