@content-collections/vite 0.2.0 → 0.2.1

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,6 +1,6 @@
1
1
 
2
2
  
3
- > @content-collections/vite@0.2.0 build /Users/sdorra/Projects/sdorra/content-collections/packages/vite
3
+ > @content-collections/vite@0.2.1 build /Users/sdorra/Projects/sdorra/content-collections/packages/vite
4
4
  > tsup src/index.ts --format esm --dts -d dist
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -9,7 +9,7 @@
9
9
  CLI Target: es2022
10
10
  ESM Build start
11
11
  ESM dist/index.js 2.07 KB
12
- ESM ⚡️ Build success in 10ms
12
+ ESM ⚡️ Build success in 12ms
13
13
  DTS Build start
14
- DTS ⚡️ Build success in 479ms
14
+ DTS ⚡️ Build success in 493ms
15
15
  DTS dist/index.d.ts 274.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @content-collections/vite
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#22](https://github.com/sdorra/content-collections/pull/22) [`17d17b4`](https://github.com/sdorra/content-collections/commit/17d17b4461d7877ce2301ecbca426520e86b8445) Thanks [@sdorra](https://github.com/sdorra)! - Do not proceed if configResolved was not executed before buildStart or configureServer
8
+
9
+ - Updated dependencies []:
10
+ - @content-collections/integrations@0.1.1
11
+
3
12
  ## 0.2.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.js CHANGED
@@ -60,7 +60,7 @@ function contentCollectionsPlugin(options = {}) {
60
60
  return;
61
61
  },
62
62
  async buildStart() {
63
- if (!isEnabled) {
63
+ if (!builder) {
64
64
  return;
65
65
  }
66
66
  console.log("Start initial build");
@@ -68,7 +68,7 @@ function contentCollectionsPlugin(options = {}) {
68
68
  return;
69
69
  },
70
70
  async configureServer() {
71
- if (!isEnabled) {
71
+ if (!builder) {
72
72
  return;
73
73
  }
74
74
  console.log("Start watching");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@content-collections/vite",
3
3
  "description": "Use content-collections with Vite",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -19,12 +19,12 @@
19
19
  "@types/node": "20.x",
20
20
  "tsup": "^7.2.0",
21
21
  "typescript": "^5.3.2",
22
- "vite": "^5",
23
- "@content-collections/core": "0.3.0"
22
+ "vite": "^5.2.6",
23
+ "@content-collections/core": "0.4.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "vite": "^5",
27
- "@content-collections/core": "^0.x"
26
+ "@content-collections/core": "^0.x",
27
+ "vite": "^5"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsup src/index.ts --format esm --dts -d dist"
package/src/index.ts CHANGED
@@ -87,7 +87,7 @@ export default function contentCollectionsPlugin(
87
87
  },
88
88
 
89
89
  async buildStart() {
90
- if (!isEnabled) {
90
+ if (!builder) {
91
91
  return;
92
92
  }
93
93
  console.log("Start initial build");
@@ -96,7 +96,7 @@ export default function contentCollectionsPlugin(
96
96
  },
97
97
 
98
98
  async configureServer() {
99
- if (!isEnabled) {
99
+ if (!builder) {
100
100
  return;
101
101
  }
102
102
  console.log("Start watching");