Skip to content

Commit df4e7ee

Browse files
committed
- Removing dependency
- Updating package type
1 parent 56895c7 commit df4e7ee

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99

1010
jobs:
1111
publish-npm:
12-
needs: build
1312
runs-on: ubuntu-latest
1413
steps:
1514
- uses: actions/checkout@v4

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const buildFlattenedSelectors = (rule) => {
6666
*
6767
* This plugin essentially flattens nested selectors in a manner similar to SASS.
6868
*/
69-
const unwrapNestedSelectors = () => ({
69+
export const unwrapNestedSelectors = () => ({
7070
postcssPlugin: 'unwrap-nested-selectors',
7171
OnceExit(root) {
7272
// Iterate through all style rules in the AST.
@@ -97,4 +97,3 @@ const unwrapNestedSelectors = () => ({
9797
},
9898
});
9999

100-
module.exports = { unwrapNestedSelectors };

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "A small PostCSS plugin to unwrap nested CSS selectors",
55
"main": "index.js",
6+
"type": "module",
67
"scripts": {
78
"test": "echo \"Error: no test specified\" && exit 1"
89
},

0 commit comments

Comments
 (0)