@content-collections/vite 0.1.0 → 0.1.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,5 +1,5 @@
1
1
 
2
- > @content-collections/vite@0.0.0 build /Users/sdorra/Projects/sdorra/content-collections/packages/vite
2
+ > @content-collections/vite@0.1.0 build /Users/sdorra/Projects/sdorra/content-collections/packages/vite
3
3
  > tsup src/index.ts --format esm --dts -d dist
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,7 +8,7 @@ CLI tsup v7.2.0
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
10
  ESM dist/index.js 1.56 KB
11
- ESM ⚡️ Build success in 11ms
11
+ ESM ⚡️ Build success in 24ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 510ms
13
+ DTS ⚡️ Build success in 649ms
14
14
  DTS dist/index.d.ts 195.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @content-collections/vite
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5c7022f`](https://github.com/sdorra/content-collections/commit/5c7022f630a9194ff5579f792c06dcca31611cd5) Thanks [@sdorra](https://github.com/sdorra)! - Update version range of core package
8
+
9
+ - Updated dependencies [[`5c7022f`](https://github.com/sdorra/content-collections/commit/5c7022f630a9194ff5579f792c06dcca31611cd5)]:
10
+ - @content-collections/integrations@0.1.1
11
+
3
12
  ## 0.1.0
4
13
 
5
14
  ### Minor Changes
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.1.0",
4
+ "version": "0.1.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -13,18 +13,18 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@content-collections/integrations": "0.1.0"
16
+ "@content-collections/integrations": "0.1.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "20.x",
20
20
  "tsup": "^7.2.0",
21
21
  "typescript": "^5.3.2",
22
22
  "vite": "^5",
23
- "@content-collections/core": "0.1.1"
23
+ "@content-collections/core": "0.2.0"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "vite": "^5",
27
- "@content-collections/core": "0.1.1"
27
+ "@content-collections/core": "^0.x"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsup src/index.ts --format esm --dts -d dist"
package/README.md DELETED
@@ -1,44 +0,0 @@
1
- ---
2
- title: Vite Integration
3
- ---
4
-
5
- 1. Install required packages:
6
-
7
- We have to install the following packages:
8
-
9
- - `@content-collections/core`
10
- - `@content-collections/vite`
11
-
12
- ```bash
13
- pnpm add -D @content-collections/core @content-collections/vite
14
- ```
15
-
16
- 1. Adjust your `tsconfig.json`:
17
-
18
- ```json
19
- {
20
- "compilerOptions": {
21
- // ...
22
- "paths": {
23
- "content-collections": ["./.content-collections/generated"]
24
- }
25
- }
26
- }
27
- ```
28
-
29
- We require a path alias for the generated files.
30
- This is necessary because we will generate the files in the `.content-collections/generated` folder.
31
-
32
- 1. Modify your `vite.config.ts`:
33
-
34
- ```ts
35
- import { defineConfig } from "vite";
36
- import contentCollections from "@content-collections/vite";
37
-
38
- export default defineConfig({
39
- plugins: [/** other plugins */, contentCollections()],
40
- });
41
-
42
- ```
43
-
44
- Add the Content Collections plugin to your Vite config.