@salty-css/next 0.1.0-alpha.9 → 0.1.0-refactor-add-additional-paths-to-config-cache.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/index.cjs +1 -1
- package/index.d.ts +22 -5
- package/index.js +9 -6
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("@salty-css/webpack"),a=(o,r={})=>{const{webpack:e,...s}=o;return{...s,webpack(t,c){const{dir:i,isServer:u}=c;return n.saltyPlugin(t,i,u,!1,{mode:r.mode,copyConfigCache:r.copyConfigCache}),e&&typeof e=="function"&&e(t,c),t}}};exports.default=a;exports.withSaltyCss=a;
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
1
|
+
import { SaltyCompilerMode } from '@salty-css/core/compiler/salty-compiler';
|
|
2
|
+
import { CopyConfigCacheOption } from '@salty-css/core/compiler/copy-config-cache';
|
|
3
|
+
type AnyRecord = Record<any, any>;
|
|
4
|
+
export interface SaltyNextOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Explicit build mode. Defaults to NODE_ENV-based detection.
|
|
7
|
+
*/
|
|
8
|
+
mode?: SaltyCompilerMode;
|
|
9
|
+
/**
|
|
10
|
+
* Where to copy the Salty `config-cache.json` after a production build.
|
|
11
|
+
*
|
|
12
|
+
* - `true` (default) → copy to webpack's `output.path` (`.next/`).
|
|
13
|
+
* - `false` → no copy.
|
|
14
|
+
* - `string | string[]` → copy to the default destination PLUS each listed path.
|
|
15
|
+
* For `output: 'standalone'`, supply the standalone path here
|
|
16
|
+
* (e.g. `['.next/standalone/<project>']`) or include it via Next's
|
|
17
|
+
* `outputFileTracingIncludes` — it cannot be auto-detected.
|
|
18
|
+
*/
|
|
19
|
+
copyConfigCache?: CopyConfigCacheOption;
|
|
20
|
+
}
|
|
21
|
+
export declare const withSaltyCss: <T extends AnyRecord>(nextConfig: T, saltyOptions?: SaltyNextOptions) => Omit<T, "webpack"> & {
|
|
22
|
+
webpack(config: any, options: any): any;
|
|
5
23
|
};
|
|
6
|
-
export declare const withSaltyCss: <T extends AnyRecord & NextConfigLikeResult>(nextConfig: T) => T & NextConfigLikeResult;
|
|
7
24
|
export default withSaltyCss;
|
package/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { saltyPlugin as
|
|
2
|
-
const p = (
|
|
3
|
-
const { webpack:
|
|
1
|
+
import { saltyPlugin as s } from "@salty-css/webpack";
|
|
2
|
+
const p = (o, t = {}) => {
|
|
3
|
+
const { webpack: e, ...a } = o;
|
|
4
4
|
return {
|
|
5
5
|
...a,
|
|
6
|
-
webpack(r,
|
|
7
|
-
const { dir:
|
|
8
|
-
return
|
|
6
|
+
webpack(r, c) {
|
|
7
|
+
const { dir: n, isServer: i } = c;
|
|
8
|
+
return s(r, n, i, !1, {
|
|
9
|
+
mode: t.mode,
|
|
10
|
+
copyConfigCache: t.copyConfigCache
|
|
11
|
+
}), e && typeof e == "function" && e(r, c), r;
|
|
9
12
|
}
|
|
10
13
|
};
|
|
11
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salty-css/next",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-refactor-add-additional-paths-to-config-cache.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@salty-css/core": "^0.1.0-
|
|
38
|
-
"@salty-css/webpack": "^0.1.0-
|
|
37
|
+
"@salty-css/core": "^0.1.0-refactor-add-additional-paths-to-config-cache.0",
|
|
38
|
+
"@salty-css/webpack": "^0.1.0-refactor-add-additional-paths-to-config-cache.0"
|
|
39
39
|
}
|
|
40
40
|
}
|