@awsless/ts-file-cache 0.0.16 → 0.0.18
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/README.MD +3 -4
- package/dist/index.cjs +366 -283
- package/dist/index.d.cts +17 -14
- package/dist/index.d.ts +17 -14
- package/dist/index.js +361 -254
- package/package.json +10 -10
package/README.MD
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
Attempt to create a hash from an js/ts file and all it's dependecies.
|
|
5
5
|
The goal is to generate a new hash when ever the file or it's dependecies change.
|
|
6
6
|
|
|
7
|
+
Supports pnpm (`pnpm-lock.yaml`) and bun (`bun.lock`) workspaces.
|
|
8
|
+
The lock file is auto-detected by walking up from the search path.
|
|
9
|
+
|
|
7
10
|
```ts
|
|
8
11
|
|
|
9
12
|
const workspace = await loadWorkspace('.')
|
|
@@ -17,7 +20,3 @@ const workspace = await loadWorkspace('.')
|
|
|
17
20
|
const hash = await generateFolderHash(workspace, "./src")
|
|
18
21
|
|
|
19
22
|
```
|
|
20
|
-
|
|
21
|
-
## Known issue's
|
|
22
|
-
|
|
23
|
-
- When we walk the AST tree with the "swc-walk" package it could fail in some code bases. Right now we just silently fail which could lead to an incorrect cache key.
|