@roots/bud-cache 6.0.0 → 6.1.0
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 +43 -22
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -8
- package/lib/index.js.map +1 -1
- package/lib/invalidate-cache-extension/index.d.ts +23 -0
- package/lib/invalidate-cache-extension/index.d.ts.map +1 -0
- package/lib/invalidate-cache-extension/index.js +45 -0
- package/lib/invalidate-cache-extension/index.js.map +1 -0
- package/lib/service.d.ts +14 -1
- package/lib/service.d.ts.map +1 -1
- package/lib/service.js +19 -4
- package/lib/service.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,53 +1,74 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="https://cdn.roots.io/app/uploads/logo-bud.svg" height="100" alt="Bud" />
|
|
3
|
-
</p>
|
|
1
|
+
<p align="center"><img src="https://cdn.roots.io/app/uploads/logo-bud.svg" height="100" alt="bud.js" /></p>
|
|
4
2
|
|
|
5
3
|
<p align="center">
|
|
6
|
-
<img alt="MIT License" src="https://img.shields.io/github/license/roots/bud?color=%23525ddc&style=flat-square" />
|
|
4
|
+
<img alt="MIT License" src="https://img.shields.io/github/license/roots/bud?color=%23525ddc&style=flat-square" />
|
|
5
|
+
<img alt="npm" src="https://img.shields.io/npm/v/@roots/bud.svg?color=%23525ddc&style=flat-square" />
|
|
6
|
+
<img alt="Follow Roots" src="https://img.shields.io/twitter/follow/rootswp.svg?color=%23525ddc&style=flat-square" />
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
<h1 align="center">
|
|
10
|
-
<strong>@roots/bud-cache</strong>
|
|
11
|
-
</h1>
|
|
9
|
+
<h1 align="center"><strong>@roots/bud-cache</strong></h1>
|
|
12
10
|
|
|
13
11
|
<p align="center">
|
|
14
12
|
Config caching
|
|
15
13
|
</p>
|
|
16
14
|
|
|
15
|
+
---
|
|
16
|
+
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
Install **@roots/bud-cache** to your project.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Yarn:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
22
24
|
yarn add @roots/bud-cache --dev
|
|
23
25
|
```
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
npm:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
npm install @roots/bud-cache --save-dev
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
## Contributing
|
|
36
|
+
|
|
37
|
+
Contributions are welcome from everyone.
|
|
38
|
+
|
|
39
|
+
We have [contribution guidelines](https://github.com/roots/guidelines/blob/master/CONTRIBUTING.md) to help you get started.
|
|
26
40
|
|
|
27
|
-
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
@roots/bud-cache is licensed under MIT.
|
|
28
44
|
|
|
29
45
|
## Community
|
|
30
46
|
|
|
31
47
|
Keep track of development and community news.
|
|
32
48
|
|
|
33
|
-
- Join us on Roots Slack by becoming a [GitHub
|
|
49
|
+
- Join us on Roots Slack by becoming a [GitHub
|
|
50
|
+
sponsor](https://github.com/sponsors/roots)
|
|
34
51
|
- Participate on the [Roots Discourse](https://discourse.roots.io/)
|
|
35
52
|
- Follow [@rootswp on Twitter](https://twitter.com/rootswp)
|
|
36
53
|
- Read and subscribe to the [Roots Blog](https://roots.io/blog/)
|
|
37
54
|
- Subscribe to the [Roots Newsletter](https://roots.io/subscribe/)
|
|
38
55
|
|
|
39
|
-
## Contributing
|
|
40
|
-
|
|
41
|
-
Contributions are welcome from everyone.
|
|
42
|
-
|
|
43
|
-
We have [contribution guidelines](https://github.com/roots/guidelines/blob/master/CONTRIBUTING.md) to help you get started.
|
|
44
|
-
|
|
45
56
|
## Sponsors
|
|
46
57
|
|
|
47
58
|
Help support our open-source development efforts by [becoming a patron](https://www.patreon.com/rootsdev).
|
|
48
59
|
|
|
49
|
-
<a href="https://k-m.com/"
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
<a href="https://
|
|
53
|
-
<
|
|
60
|
+
<a href="https://k-m.com/">
|
|
61
|
+
<img src="https://cdn.roots.io/app/uploads/km-digital.svg" alt="KM Digital" width="200" height="150"/>
|
|
62
|
+
</a>
|
|
63
|
+
<a href="https://carrot.com/">
|
|
64
|
+
<img src="https://cdn.roots.io/app/uploads/carrot.svg" alt="Carrot" width="200" height="150"/>
|
|
65
|
+
</a>
|
|
66
|
+
<a href="https://www.c21redwood.com/">
|
|
67
|
+
<img src="https://cdn.roots.io/app/uploads/c21redwood.svg" alt="C21 Redwood Realty" width="200" height="150"/>
|
|
68
|
+
</a>
|
|
69
|
+
<a href="https://wordpress.com/">
|
|
70
|
+
<img src="https://cdn.roots.io/app/uploads/wordpress.svg" alt="WordPress.com" width="200" height="150"/>
|
|
71
|
+
</a>
|
|
72
|
+
<a href="https://pantheon.io/">
|
|
73
|
+
<img src="https://cdn.roots.io/app/uploads/pantheon.svg" alt="Pantheon" width="200" height="150"/>
|
|
74
|
+
</a>
|
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
|
+
import type InvalidateCacheExtension from './invalidate-cache-extension/index.js';
|
|
9
10
|
import Cache from './service.js';
|
|
11
|
+
declare module '@roots/bud-framework' {
|
|
12
|
+
interface Modules {
|
|
13
|
+
'@roots/bud-cache/invalidate-cache': InvalidateCacheExtension;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
10
16
|
export { Cache, Cache as Service, Cache as default };
|
|
11
17
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,cAAc,CAAA;AAEhC,OAAO,EAAC,KAAK,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK,IAAI,OAAO,EAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,wBAAwB,MAAM,uCAAuC,CAAA;AACjF,OAAO,KAAK,MAAM,cAAc,CAAA;AAEhC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,OAAO;QACf,mCAAmC,EAAE,wBAAwB,CAAA;KAC9D;CACF;AAED,OAAO,EAAC,KAAK,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK,IAAI,OAAO,EAAC,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
// Copyright © Roots Software Foundation LLC
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
|
-
/**
|
|
4
|
-
* Compiler and pre-compiler caching
|
|
5
|
-
*
|
|
6
|
-
* @see {@link https://bud.js.org}
|
|
7
|
-
* @see {@link https://github.com/roots/bud}
|
|
8
|
-
*
|
|
9
|
-
* @packageDocumentation
|
|
10
|
-
*/
|
|
11
3
|
import Cache from './service.js';
|
|
12
4
|
export { Cache, Cache as Service, Cache as default };
|
|
13
5
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,kCAAkC;AAYlC,OAAO,KAAK,MAAM,cAAc,CAAA;AAQhC,OAAO,EAAC,KAAK,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK,IAAI,OAAO,EAAC,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Extension } from '@roots/bud-framework/extension';
|
|
2
|
+
/**
|
|
3
|
+
* Cache invalidation extension
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Certain webpack components such as `eslint-webpack-plugin` and
|
|
7
|
+
* `ts-loader` have issues with fs caching. This extension writes a file
|
|
8
|
+
* to the cache directory which is used to invalidate the cache before
|
|
9
|
+
* webpack is invoked on subsequent builds
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
* @decorator `@label`
|
|
13
|
+
*/
|
|
14
|
+
export default class InvalidateCacheExtension extends Extension {
|
|
15
|
+
/**
|
|
16
|
+
* `register` callback
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
* @decorator `@bind`
|
|
20
|
+
*/
|
|
21
|
+
register(): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invalidate-cache-extension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAA;AAIxD;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,SAAS;IAC7D;;;;;OAKG;IACgB,QAAQ;CAkB5B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Extension } from '@roots/bud-framework/extension';
|
|
3
|
+
import { bind, label } from '@roots/bud-framework/extension/decorators';
|
|
4
|
+
import fs from 'fs-extra';
|
|
5
|
+
/**
|
|
6
|
+
* Cache invalidation extension
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Certain webpack components such as `eslint-webpack-plugin` and
|
|
10
|
+
* `ts-loader` have issues with fs caching. This extension writes a file
|
|
11
|
+
* to the cache directory which is used to invalidate the cache before
|
|
12
|
+
* webpack is invoked on subsequent builds
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
* @decorator `@label`
|
|
16
|
+
*/
|
|
17
|
+
let InvalidateCacheExtension = class InvalidateCacheExtension extends Extension {
|
|
18
|
+
/**
|
|
19
|
+
* `register` callback
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
* @decorator `@bind`
|
|
23
|
+
*/
|
|
24
|
+
async register() {
|
|
25
|
+
const invalidate = await fs.pathExists(this.app.path(`@storage/cache/invalidate`));
|
|
26
|
+
if (this.app.context.args.flush === true || invalidate) {
|
|
27
|
+
await fs.remove(this.app.path(`@storage/cache`));
|
|
28
|
+
}
|
|
29
|
+
this.app.hooks.action('event.compiler.after', async () => {
|
|
30
|
+
this.app.compiler.compilation.hooks.done.tap(this.label, async (compiler) => {
|
|
31
|
+
if (!compiler.hasErrors())
|
|
32
|
+
return;
|
|
33
|
+
await fs.ensureFile(this.app.path(`@storage/cache/invalidate`));
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__decorate([
|
|
39
|
+
bind
|
|
40
|
+
], InvalidateCacheExtension.prototype, "register", null);
|
|
41
|
+
InvalidateCacheExtension = __decorate([
|
|
42
|
+
label('@roots/bud-cache/invalidate-cache')
|
|
43
|
+
], InvalidateCacheExtension);
|
|
44
|
+
export default InvalidateCacheExtension;
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/invalidate-cache-extension/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,2CAA2C,CAAA;AACrE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB;;;;;;;;;;;GAWG;AAEH,IAAqB,wBAAwB,GAA7C,MAAqB,wBAAyB,SAAQ,SAAS;IAC7D;;;;;OAKG;IACU,KAAK,CAAC,QAAQ;QACzB,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC,UAAU,CACpC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAC3C,CAAA;QACD,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,UAAU,EAAE;YACtD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAA;SACjD;QAED,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;YACvD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAC1C,IAAI,CAAC,KAAK,EACV,KAAK,EAAC,QAAQ,EAAC,EAAE;gBACf,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE;oBAAE,OAAM;gBACjC,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,CAAA;YACjE,CAAC,CACF,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAlBO;IAAL,IAAI;wDAiBJ;AAxBkB,wBAAwB;IAD5C,KAAK,CAAC,mCAAmC,CAAC;GACtB,wBAAwB,CAyB5C;eAzBoB,wBAAwB"}
|
package/lib/service.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Service, Services } from '@roots/bud-framework';
|
|
2
|
-
import type { Context } from '@roots/bud-framework/
|
|
2
|
+
import type { Context } from '@roots/bud-framework/config';
|
|
3
3
|
/**
|
|
4
4
|
* Cache service class
|
|
5
5
|
*
|
|
@@ -88,6 +88,19 @@ export default class Cache extends Service implements Services.Cache.Service {
|
|
|
88
88
|
managedPaths: string[];
|
|
89
89
|
buildDependencies: any;
|
|
90
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* `register` callback
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
* @decorator `@bind`
|
|
96
|
+
*/
|
|
97
|
+
register(): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* `boot` callback
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
* @decorator `@bind`
|
|
103
|
+
*/
|
|
91
104
|
boot(): Promise<void>;
|
|
92
105
|
clean(): void;
|
|
93
106
|
}
|
package/lib/service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,6BAA6B,CAAA;AAOxD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,KACnB,SAAQ,OACR,YAAW,QAAQ,CAAC,KAAK,CAAC,OAAO;IAEjC;;;;OAIG;IACI,OAAO,EAAE,OAAO,CAAO;IAE9B;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,CAAA;IACvB,IAAW,IAAI,IAAI,MAAM,CAExB;IACD,IAAW,IAAI,CAAC,IAAI,EAAE,MAAM,EAE3B;IAED;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,QAAQ,GAAG,YAAY,CAAA;IACxC,IAAW,IAAI,IAAI,QAAQ,GAAG,YAAY,CAEzC;IACD,IAAW,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,YAAY,EAE5C;IAED;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAA;IAC1B,IAAW,OAAO,IAAI,MAAM,CAE3B;IACD,IAAW,OAAO,CAAC,OAAO,EAAE,MAAM,EAEjC;IAED;;;;OAIG;IACH,IAAW,iBAAiB,IAAI,GAAG,CAIlC;IACD,IAAW,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EAE3D;IAED;;;;OAIG;IACH,SAAS,CAAC,eAAe,EAAE,MAAM,CAAA;IACjC,IAAW,cAAc,IAAI,MAAM,CAElC;IACD,IAAW,cAAc,CAAC,SAAS,EAAE,MAAM,EAE1C;IAED;;;;OAIG;IACH,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACtC,IAAW,YAAY,IAAI,KAAK,CAAC,MAAM,CAAC,CAEvC;IACD,IAAW,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAE3C;IAED;;;;OAIG;IACH,IAAW,aAAa;;MAGvB;IAED;;;;OAIG;IACH,IAAW,WAAW;;MAIrB;IAED;;;;OAIG;IACH,IAAW,eAAe;;;;;;;MASzB;IAED;;;;;OAKG;IACgB,QAAQ;IAI3B;;;;;OAKG;IACgB,IAAI;IAoBV,KAAK;CAGnB"}
|
package/lib/service.js
CHANGED
|
@@ -3,6 +3,7 @@ import { Service } from '@roots/bud-framework';
|
|
|
3
3
|
import fs from 'fs-extra';
|
|
4
4
|
import { bind } from 'helpful-decorators';
|
|
5
5
|
import { createHash } from 'node:crypto';
|
|
6
|
+
import InvalidateCacheExtension from './invalidate-cache-extension/index.js';
|
|
6
7
|
/**
|
|
7
8
|
* Cache service class
|
|
8
9
|
*
|
|
@@ -96,14 +97,26 @@ export default class Cache extends Service {
|
|
|
96
97
|
buildDependencies: this.buildDependencies,
|
|
97
98
|
};
|
|
98
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* `register` callback
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
* @decorator `@bind`
|
|
105
|
+
*/
|
|
106
|
+
async register() {
|
|
107
|
+
await this.app.extensions.add(InvalidateCacheExtension);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* `boot` callback
|
|
111
|
+
*
|
|
112
|
+
* @public
|
|
113
|
+
* @decorator `@bind`
|
|
114
|
+
*/
|
|
99
115
|
async boot() {
|
|
100
116
|
this.type = 'filesystem';
|
|
101
117
|
this.cacheDirectory = this.app.path(`@storage/cache/webpack`);
|
|
102
118
|
this.managedPaths = [this.app.path(`@modules`)];
|
|
103
119
|
this.name = `${this.app.name}.${this.app.mode}`;
|
|
104
|
-
if (this.app.context.args.flush === true) {
|
|
105
|
-
await fs.remove(this.app.path(`@storage/cache`));
|
|
106
|
-
}
|
|
107
120
|
const args = Object.entries(this.app.context.args)
|
|
108
121
|
.filter(([k, v]) => v !== undefined)
|
|
109
122
|
.map(([k, v]) => `${k}-${v}`)
|
|
@@ -115,10 +128,12 @@ export default class Cache extends Service {
|
|
|
115
128
|
.toLowerCase();
|
|
116
129
|
}
|
|
117
130
|
clean() {
|
|
118
|
-
this.app.log('cleaning cache');
|
|
119
131
|
fs.removeSync(this.app.path(`@storage/cache`));
|
|
120
132
|
}
|
|
121
133
|
}
|
|
134
|
+
__decorate([
|
|
135
|
+
bind
|
|
136
|
+
], Cache.prototype, "register", null);
|
|
122
137
|
__decorate([
|
|
123
138
|
bind
|
|
124
139
|
], Cache.prototype, "boot", null);
|
package/lib/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,OAAO,EAAW,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAE,MAAM,UAAU,CAAA;AACzB,OAAO,EAAC,IAAI,EAAC,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAA;AAEtC;;;;GAIG;AACH,MA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@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roots/bud-cache",
|
|
3
3
|
"description": "Config caching",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.1.0",
|
|
5
5
|
"homepage": "https://roots.io/bud",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"tslib": "2.4.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@roots/bud-framework": "6.
|
|
65
|
+
"@roots/bud-framework": "6.1.0",
|
|
66
66
|
"fs-extra": "10.1.0",
|
|
67
67
|
"helpful-decorators": "2.1.0",
|
|
68
68
|
"lodash-es": "4.17.21"
|