defuss-astro 1.5.0 → 1.7.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 CHANGED
@@ -35,7 +35,7 @@ If you've arrived here to add `defuss` to your Astro project, you're just two st
35
35
 
36
36
  ```bash
37
37
  # install a decent package manager
38
- npm i -g pnpm@^9.13.2
38
+ npm i -g bun@^1.3.9
39
39
 
40
40
  # from your project root folder, add defuss-astro to the devDependencies
41
41
  npm install --save-dev defuss-astro
@@ -60,40 +60,6 @@ export default defineConfig({
60
60
 
61
61
  **Note on Advanced Usage:** `defuss({ ... })` can be called with arguments to `include` and `exclude` files from the underlaying `babel` transpilation. Using the `babel` property, a specific `babel` configuration can be provided. Please find the `DefussPluginOptions` [here]().
62
62
 
63
- <h3 align="center">
64
-
65
- 🚀 How does `defuss-astro` work?
66
-
67
- </h3>
68
-
69
- Inside this package, you'll find the following relevant folders and files:
70
-
71
- ```text
72
- /
73
- ├── scripts/finalize-build.ts
74
- ├── src/index.ts
75
- ├── src/types.ts
76
- ├── src/render.ts
77
- ├── src/client.ts
78
- ├── src/server.ts
79
- ├── tsconfig.json
80
- ├── LICENSE
81
- ├── package.json
82
- ```
83
-
84
- The `src/index.ts` file is the "entry point" for our Astro Integration. Its default exported function is called in any `astro.config.(mjs|ts)` of any integrating Astro project *(see above)*.
85
-
86
- ## 🧞 Commands
87
-
88
- All commands are run from the root of the project, from a terminal:
89
-
90
- | Command | Action |
91
- | :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
92
- | `npm build` | Build a new version of the integration. |
93
- | `npm publish` | Publish a new version of the `defuss-astro` integration package. |
94
-
95
- ---
96
-
97
63
  <img src="https://raw.githubusercontent.com/kyr0/defuss/refs/heads/main/assets/defuss_comic.png" />
98
64
 
99
- <caption><i><b>Come visit us on defuss island!</b></i></caption>
65
+ <caption><i><b>Come visit us on defuss island!</b></i></caption>
package/dist/client.cjs CHANGED
File without changes
package/dist/client.mjs CHANGED
File without changes
package/dist/index.cjs CHANGED
File without changes
package/dist/index.mjs CHANGED
File without changes
package/dist/server.cjs CHANGED
File without changes
package/dist/server.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "defuss-astro",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "license": "MIT",
9
- "description": "defuss integration for Astro",
9
+ "description": "defuss integration with Astro",
10
10
  "keywords": [
11
11
  "jsx",
12
12
  "render",
@@ -19,10 +19,11 @@
19
19
  "type": "git"
20
20
  },
21
21
  "scripts": {
22
- "clean": "rm -rf ./dist && rm -rf ./node_modules/.pnpm",
23
- "prebuild": "pnpm run clean",
22
+ "clean": "rm -rf ./dist && rm -rf ./node_modules/.bun",
23
+ "prebuild": "bun run clean",
24
24
  "build": "pkgroll",
25
- "postbuild": "tsx ./scripts/finalize-build.ts"
25
+ "postbuild": "tsx ./scripts/finalize-build.ts",
26
+ "prepublishOnly": "bun run build"
26
27
  },
27
28
  "author": "Aron Homberg <info@aron-homberg.de>",
28
29
  "sideEffects": false,
@@ -65,21 +66,23 @@
65
66
  "dist"
66
67
  ],
67
68
  "devDependencies": {
68
- "pkgroll": "^2.5.1",
69
- "typescript": "^5.6.3",
70
- "tsx": "^4.19.2"
69
+ "pkgroll": "^2.27.0",
70
+ "tsx": "^4.21.0",
71
+ "typescript": "^6.0.3"
71
72
  },
72
73
  "engines": {
73
74
  "node": "^18.17.1 || ^20.3.0 || >=21.0.0"
74
75
  },
75
76
  "dependencies": {
76
- "defuss": "^2.1.10",
77
77
  "@swc/core": "^1.10.2",
78
- "astro": "^5.16.11",
79
- "vite": "^6.4.1",
80
78
  "fast-glob": "^3.3.3",
81
- "svgo": "^4.0.0",
79
+ "file-type": "^21.3.0",
82
80
  "purgecss": "^7.0.2",
83
- "file-type": "^21.3.0"
81
+ "svgo": "^4.0.0"
82
+ },
83
+ "peerDependencies": {
84
+ "defuss": "*",
85
+ "astro": "*",
86
+ "vite": "*"
84
87
  }
85
- }
88
+ }