@jon49/sw 0.12.10 → 0.12.11

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.
@@ -83,7 +83,7 @@ async function handleHTML(targetDirectory: string) {
83
83
 
84
84
  let mappableFiles =
85
85
  (await Promise.all(
86
- (await glob("**/{css,js,images}/*.*", "./src"))
86
+ (await glob("**/{css,js,images}/**/*.*", "./src"))
87
87
  .map(async x => {
88
88
  let ext = path.extname(x)
89
89
  if (ext === ".ts") {
package/bin/lib/system.ts CHANGED
@@ -40,7 +40,9 @@ export async function findHashedFile(
40
40
 
41
41
  let parsed = path.parse(filename)
42
42
  for await (const file of Glob(`**/${parsed.dir}/${parsed.name}.*${ext}`, { cwd: targetDirectory })) {
43
- return file
43
+ if (file.startsWith(parsed.dir)) {
44
+ return file
45
+ }
44
46
  }
45
47
  }
46
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jon49/sw",
3
- "version": "0.12.10",
3
+ "version": "0.12.11",
4
4
  "description": "Packages for MVC service workers.",
5
5
  "type": "module",
6
6
  "files": [