@fullhuman/purgecss-from-tsx 4.1.0 → 5.0.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.
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as ts from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { default as acorn_2 } from 'acorn';
|
|
2
|
+
import * as ts from 'typescript';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Create function to extract selectors from tsx code
|
|
6
|
+
*
|
|
7
|
+
* @param options - acorn options
|
|
8
|
+
* @returns the function to extract selectors from tsx code
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
declare function purgeFromTsx(options?: {
|
|
13
|
+
acornOptions?: acorn_2.Options;
|
|
14
|
+
tsOptions?: ts.CompilerOptions;
|
|
15
|
+
}): (content: string) => string[];
|
|
16
|
+
export default purgeFromTsx;
|
|
17
|
+
|
|
18
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullhuman/purgecss-from-tsx",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "TSX extractor for PurgeCSS",
|
|
5
5
|
"author": "Ffloriel",
|
|
6
6
|
"homepage": "https://github.com/FullHuman/purgecss#readme",
|
|
@@ -20,15 +20,16 @@
|
|
|
20
20
|
"url": "git+https://github.com/FullHuman/purgecss.git"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"
|
|
23
|
+
"build": "ts-node build.ts",
|
|
24
|
+
"test": "jest"
|
|
24
25
|
},
|
|
25
26
|
"bugs": {
|
|
26
27
|
"url": "https://github.com/FullHuman/purgecss/issues"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@fullhuman/purgecss-from-jsx": "^
|
|
30
|
-
"acorn": "^7.
|
|
31
|
-
"typescript": "^4.3
|
|
30
|
+
"@fullhuman/purgecss-from-jsx": "^5.0.0",
|
|
31
|
+
"acorn": "^8.7.0",
|
|
32
|
+
"typescript": "^4.5.3"
|
|
32
33
|
},
|
|
33
34
|
"publishConfig": {
|
|
34
35
|
"access": "public",
|