Fix bin/publish: copy docs.dist from project root

Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-21 02:08:33 +00:00
commit f6fac6c4bc
79758 changed files with 10547827 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
# 5.0.0 - 2021-01-31
- Added: Support for PostCSS v8.
# 4.0.1 - 2020-12-18
- Fixed: error when attribute selector containing :not ([#17](https://github.com/postcss/postcss-selector-not/pull/17))
# 4.0.0 - 2018-09-17
- Added: compatibility with postcss v7.x
- Added: compatibility with node v6.x
# 3.0.1 - 2017-05-15
- Fixed: incorrect export ([#8](https://github.com/postcss/postcss-selector-not/issues/8))
# 3.0.0 - 2017-05-11
- Added: compatibility with postcss v6.x
# 2.0.0 - 2015-08-25
- Removed: compatibility with postcss v4.x
- Added: compatibility with postcss v5.x
# 1.2.1 - 2015-06-16
- Fixed: selector was updated as an array, which is wrong.
# 1.2.0 - 2015-06-16
- Fixed: spec has been previously misinterpreted and now transform correctly
`:not()` level 4 to collapsed level 3
([#1](https://github.com/postcss/postcss-selector-not/issues/1))
- Removed: `lineBreak` option (useless now)
# 1.1.0 - 2015-06-13
- Added: `lineBreak` option
# 1.0.2 - 2015-06-13
- Fixed: support of pseudo classes that use parenthesis
# 1.0.1 - 2015-04-30
- Fixed: the module now works in non babel environments
# 1.0.0 - 2015-04-30
✨ First release

View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 Maxime Thirouin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,37 @@
# postcss-selector-not [![CSS Standard Status](https://cssdb.org/badge/not-pseudo-class.svg)](https://cssdb.org/#not-pseudo-class) [![Build Status](https://travis-ci.org/postcss/postcss-selector-not.svg?branch=master)](https://travis-ci.org/postcss/postcss-selector-not)
> PostCSS plugin to transform `:not()` W3C CSS level 4 pseudo class to :not() CSS level 3 selectors
http://dev.w3.org/csswg/selectors-4/#negation
[!['Can I use' table](https://caniuse.bitsofco.de/image/css-not-sel-list.png)](https://caniuse.com/#feat=css-not-sel-list)
## Installation
```console
$ npm install postcss postcss-selector-not
```
## Usage
Using this `input.css`:
```css
p:not(:first-child, .special) {
color: red;
}
```
you will get:
```css
p:not(:first-child):not(.special) {
color: red;
}
```
---
## [Changelog](CHANGELOG.md)
## [License](LICENSE)

View File

@@ -0,0 +1,69 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _list = _interopRequireDefault(require("postcss/lib/list"));
var _balancedMatch = _interopRequireDefault(require("balanced-match"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function explodeSelector(pseudoClass, selector) {
const position = locatePseudoClass(selector, pseudoClass);
if (selector && position > -1) {
const pre = selector.slice(0, position);
const matches = (0, _balancedMatch.default)("(", ")", selector.slice(position));
if (!matches) {
return selector;
}
const bodySelectors = matches.body ? _list.default.comma(matches.body).map(s => explodeSelector(pseudoClass, s)).join(`)${pseudoClass}(`) : "";
const postSelectors = matches.post ? explodeSelector(pseudoClass, matches.post) : "";
return `${pre}${pseudoClass}(${bodySelectors})${postSelectors}`;
}
return selector;
}
const patternCache = {};
function locatePseudoClass(selector, pseudoClass) {
patternCache[pseudoClass] = patternCache[pseudoClass] || new RegExp(`([^\\\\]|^)${pseudoClass}`); // The regex is used to ensure that selectors with
// escaped colons in them are treated properly
// Ex: .foo\:not-bar is a valid CSS selector
// But it is not a reference to a pseudo selector
const pattern = patternCache[pseudoClass];
const position = selector.search(pattern);
if (position === -1) {
return -1;
} // The offset returned by the regex may be off by one because
// of it including the negated character match in the position
return position + selector.slice(position).indexOf(pseudoClass);
}
function explodeSelectors(pseudoClass) {
return () => {
return {
postcssPlugin: "postcss-selector-not",
Rule: rule => {
if (rule.selector && rule.selector.indexOf(pseudoClass) > -1) {
rule.selector = explodeSelector(pseudoClass, rule.selector);
}
}
};
};
}
const creator = explodeSelectors(":not");
creator.postcss = true;
var _default = creator;
exports.default = _default;