@roots/bud-build 2023.3.27 → 2023.3.29

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.
@@ -1,2 +1,2 @@
1
- export const recordsPath = async (bud) => bud.hooks.filter(`build.recordsPath`, bud.path(`@storage`, bud.label, `modules.json`));
1
+ export const recordsPath = async (bud) => bud.hooks.filter(`build.recordsPath`, bud.path(`@os-cache`, bud.label, `modules.json`));
2
2
  //# sourceMappingURL=recordsPath.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"recordsPath.js","sourceRoot":"","sources":["../../src/config/recordsPath.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAA2B,KAAK,EAAC,GAAG,EAAC,EAAE,CAC7D,GAAG,CAAC,KAAK,CAAC,MAAM,CACd,mBAAmB,EACnB,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,CAChD,CAAA"}
1
+ {"version":3,"file":"recordsPath.js","sourceRoot":"","sources":["../../src/config/recordsPath.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAA2B,KAAK,EAAC,GAAG,EAAC,EAAE,CAC7D,GAAG,CAAC,KAAK,CAAC,MAAM,CACd,mBAAmB,EACnB,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,CACjD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../src/config/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,UAAU,CAMrC,CAAA"}
1
+ {"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../src/config/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,UAAU,CASrC,CAAA"}
@@ -1,7 +1,10 @@
1
1
  export const snapshot = async (app) => app.hooks.filter(`build.snapshot`, {
2
2
  managedPaths: app.hooks.filter(`build.snapshot.managedPaths`, [
3
- app.path(`@storage`),
4
- app.path(`@modules`),
3
+ ...new Set([
4
+ app.path(`@os-cache`),
5
+ app.path(`@storage`),
6
+ app.path(`@modules`),
7
+ ]),
5
8
  ]),
6
9
  });
7
10
  //# sourceMappingURL=snapshot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/config/snapshot.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAwB,KAAK,EAAC,GAAG,EAAC,EAAE,CACvD,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE;IACjC,YAAY,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,EAAE;QAC5D,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;QACpB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;KACrB,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/config/snapshot.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAwB,KAAK,EAAC,GAAG,EAAC,EAAE,CACvD,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE;IACjC,YAAY,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,EAAE;QAC5D,GAAG,IAAI,GAAG,CAAC;YACT,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;YACrB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YACpB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;SACrB,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,13 +1,8 @@
1
1
  {
2
2
  "name": "@roots/bud-build",
3
3
  "description": "bud.js core module",
4
- "version": "2023.3.27",
5
- "homepage": "https://roots.io/bud",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/roots/bud.git",
9
- "directory": "sources/@roots/bud-build"
10
- },
4
+ "version": "2023.3.29",
5
+ "bugs": "https://github.com/roots/bud/issues",
11
6
  "contributors": [
12
7
  {
13
8
  "name": "Kelly Mears",
@@ -24,27 +19,20 @@
24
19
  "url": "https://github.com/QWp6t"
25
20
  }
26
21
  ],
27
- "license": "MIT",
28
- "bugs": {
29
- "url": "https://github.com/roots/bud/issues"
22
+ "dependencies": {
23
+ "@roots/bud-framework": "2023.3.29",
24
+ "@roots/bud-support": "2023.3.29",
25
+ "tslib": "2.5.0"
30
26
  },
31
- "funding": {
32
- "type": "github sponsors",
33
- "url": "https://github.com/sponsors/roots"
27
+ "devDependencies": {
28
+ "@roots/bud-api": "2023.3.29",
29
+ "@roots/bud-hooks": "2023.3.29",
30
+ "@skypack/package-check": "0.2.2",
31
+ "@types/node": "18.15.10"
34
32
  },
35
- "keywords": [
36
- "bud",
37
- "bud-framework"
38
- ],
39
33
  "engines": {
40
34
  "node": ">=16"
41
35
  },
42
- "files": [
43
- "docs",
44
- "lib",
45
- "src"
46
- ],
47
- "type": "module",
48
36
  "exports": {
49
37
  ".": {
50
38
  "import": "./lib/index.js",
@@ -79,19 +67,29 @@
79
67
  "default": "./lib/types.js"
80
68
  }
81
69
  },
82
- "module": "./lib/index.js",
83
- "types": "./lib/index.d.ts",
84
- "devDependencies": {
85
- "@roots/bud-api": "2023.3.27",
86
- "@roots/bud-hooks": "2023.3.27",
87
- "@skypack/package-check": "0.2.2",
88
- "@types/node": "18.15.5"
70
+ "files": [
71
+ "docs",
72
+ "lib",
73
+ "src"
74
+ ],
75
+ "funding": {
76
+ "type": "github sponsors",
77
+ "url": "https://github.com/sponsors/roots"
89
78
  },
90
- "dependencies": {
91
- "@roots/bud-framework": "2023.3.27",
92
- "@roots/bud-support": "2023.3.27",
93
- "tslib": "2.5.0"
79
+ "homepage": "https://roots.io/bud",
80
+ "keywords": [
81
+ "bud",
82
+ "bud-framework"
83
+ ],
84
+ "license": "MIT",
85
+ "module": "./lib/index.js",
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "https://github.com/roots/bud.git",
89
+ "directory": "sources/@roots/bud-build"
94
90
  },
91
+ "type": "module",
92
+ "types": "./lib/index.d.ts",
95
93
  "volta": {
96
94
  "extends": "../../../package.json"
97
95
  }
@@ -28,10 +28,6 @@ describe(`bud.build.config`, function () {
28
28
 
29
29
  expect(cache.type).toStrictEqual(`filesystem`)
30
30
 
31
- expect(cache.cacheDirectory).toStrictEqual(
32
- expect.stringContaining(`.budfiles`),
33
- )
34
-
35
31
  expect(cache.version).toStrictEqual(expect.any(String))
36
32
  })
37
33
 
@@ -3,5 +3,5 @@ import type {Factory} from './index.js'
3
3
  export const recordsPath: Factory<`recordsPath`> = async bud =>
4
4
  bud.hooks.filter(
5
5
  `build.recordsPath`,
6
- bud.path(`@storage`, bud.label, `modules.json`),
6
+ bud.path(`@os-cache`, bud.label, `modules.json`),
7
7
  )
@@ -3,7 +3,10 @@ import type {Factory} from './index.js'
3
3
  export const snapshot: Factory<`snapshot`> = async app =>
4
4
  app.hooks.filter(`build.snapshot`, {
5
5
  managedPaths: app.hooks.filter(`build.snapshot.managedPaths`, [
6
- app.path(`@storage`),
7
- app.path(`@modules`),
6
+ ...new Set([
7
+ app.path(`@os-cache`),
8
+ app.path(`@storage`),
9
+ app.path(`@modules`),
10
+ ]),
8
11
  ]),
9
12
  })