@salty-css/astro 0.0.1-alpha.306 → 0.0.1-alpha.308

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./astro-vite-plugin.cjs"),a=require("path"),c=(t={})=>({name:"astro-salty-integration",hooks:{"astro:config:setup":({config:r,updateConfig:o})=>{const{srcDir:n="src",rootDir:i=r.root.pathname}=t,e=a.join(i,n);o({vite:{plugins:[s.saltyPlugin(e)]}})}}});exports.saltyIntegration=c;
@@ -0,0 +1,15 @@
1
+ import { AstroIntegration } from 'astro';
2
+ interface SaltyIntegrationOptions {
3
+ /**
4
+ * The source directory where SaltyCSS Config is located.
5
+ * Default is "src".
6
+ */
7
+ srcDir?: string;
8
+ /**
9
+ * Override full path to the project directory.
10
+ * Default is the current directory of the Astro configuration.
11
+ */
12
+ rootDir?: string;
13
+ }
14
+ export declare const saltyIntegration: (options?: SaltyIntegrationOptions) => AstroIntegration;
15
+ export {};
package/integration.js ADDED
@@ -0,0 +1,18 @@
1
+ import { saltyPlugin as a } from "./astro-vite-plugin.js";
2
+ import { join as e } from "path";
3
+ const m = (o = {}) => ({
4
+ name: "astro-salty-integration",
5
+ hooks: {
6
+ "astro:config:setup": ({ config: t, updateConfig: r }) => {
7
+ const { srcDir: i = "src", rootDir: n = t.root.pathname } = o, s = e(n, i);
8
+ r({
9
+ vite: {
10
+ plugins: [a(s)]
11
+ }
12
+ });
13
+ }
14
+ }
15
+ });
16
+ export {
17
+ m as saltyIntegration
18
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salty-css/astro",
3
- "version": "0.0.1-alpha.306",
3
+ "version": "0.0.1-alpha.308",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "typings": "./dist/index.d.ts",
@@ -36,13 +36,18 @@
36
36
  "import": "./styled.js",
37
37
  "require": "./styled.cjs"
38
38
  },
39
- "./config": {
40
- "import": "./config.js",
41
- "require": "./config.cjs"
39
+ "./astro-vite-plugin": {
40
+ "import": "./astro-vite-plugin.js",
41
+ "require": "./astro-vite-plugin.cjs"
42
+ },
43
+ "./integration": {
44
+ "import": "./integration.js",
45
+ "require": "./integration.cjs"
42
46
  }
43
47
  },
44
48
  "dependencies": {
45
- "@salty-css/core": "^0.0.1-alpha.306",
49
+ "@salty-css/core": "^0.0.1-alpha.308",
50
+ "astro": "^5.13.2",
46
51
  "vite": "^6.3.5"
47
52
  }
48
53
  }
File without changes
File without changes
File without changes