@docusaurus/plugin-css-cascade-layers 4.0.0-canary-6870 → 4.0.0-canary-6872
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/lib/index.js +2 -2
- package/package.json +7 -7
- package/src/index.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.validateOptions = void 0;
|
|
10
10
|
exports.default = pluginCssCascadeLayers;
|
|
11
11
|
const tslib_1 = require("tslib");
|
|
12
|
-
const
|
|
12
|
+
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
13
13
|
const postCssPlugin_1 = require("./postCssPlugin");
|
|
14
14
|
const layers_1 = require("./layers");
|
|
15
15
|
const PluginName = 'docusaurus-plugin-css-cascade-layers';
|
|
@@ -22,7 +22,7 @@ function getLayersDeclarationPath(context, options) {
|
|
|
22
22
|
// using this plugin twice doesn't really make sense
|
|
23
23
|
throw new Error('The CSS Cascade Layers plugin does not support multiple instances.');
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return node_path_1.default.join(generatedFilesDir, PluginName, pluginId, LayersDeclarationModule);
|
|
26
26
|
}
|
|
27
27
|
function pluginCssCascadeLayers(context, options) {
|
|
28
28
|
const layersDeclarationPath = getLayersDeclarationPath(context, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-css-cascade-layers",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6872",
|
|
4
4
|
"description": "CSS Cascade Layer plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "4.0.0-canary-
|
|
22
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
23
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
24
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
21
|
+
"@docusaurus/core": "4.0.0-canary-6872",
|
|
22
|
+
"@docusaurus/types": "4.0.0-canary-6872",
|
|
23
|
+
"@docusaurus/utils": "4.0.0-canary-6872",
|
|
24
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6872",
|
|
25
25
|
"tslib": "^2.8.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
28
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6872",
|
|
29
29
|
"postcss": "^8.5.28"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=24.21"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "97ddb0451f086d8a1c20967f0d324d667dc58ebf"
|
|
35
35
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import path from 'path';
|
|
8
|
+
import path from 'node:path';
|
|
9
9
|
import {PostCssPluginWrapInLayer} from './postCssPlugin';
|
|
10
10
|
import {generateLayersDeclaration} from './layers';
|
|
11
11
|
import type {LoadContext, Plugin} from '@docusaurus/types';
|