@plumeria/compiler 0.19.4 → 0.20.1
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/bin/css.js +8 -9
- package/package.json +3 -3
package/bin/css.js
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const { execSync } = require('child_process');
|
|
5
5
|
const { styleText } = require('util');
|
|
6
|
+
const { enableCompileCache } = require('node:module');
|
|
7
|
+
|
|
8
|
+
enableCompileCache();
|
|
9
|
+
|
|
10
|
+
const { register } = require('rscute/register');
|
|
11
|
+
|
|
12
|
+
register();
|
|
6
13
|
|
|
7
14
|
try {
|
|
8
15
|
const checkMark = styleText('greenBright', '✓');
|
|
@@ -15,15 +22,7 @@ try {
|
|
|
15
22
|
});
|
|
16
23
|
}
|
|
17
24
|
|
|
18
|
-
|
|
19
|
-
const a2 = process.argv.includes('--paths') ? '--paths' : '';
|
|
20
|
-
const argv = [a1, a2].join(' ');
|
|
21
|
-
|
|
22
|
-
const indexPath = path.resolve(__dirname, '../dist/index.js');
|
|
23
|
-
|
|
24
|
-
execSync(`node -r rscute ${indexPath} ` + argv, {
|
|
25
|
-
stdio: 'inherit',
|
|
26
|
-
});
|
|
25
|
+
require(path.resolve(__dirname, '../dist/index.js'));
|
|
27
26
|
|
|
28
27
|
const compilation = typecheck ? 'Type-check completed' : '';
|
|
29
28
|
console.log(` ${checkMark} Compiled... ${compilation}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/compiler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "Plumeria Rust-based compiler",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@rust-gear/glob": "^0.2.2",
|
|
20
20
|
"@swc/core": "^1.11.24",
|
|
21
|
+
"find-up": "^7.0.0",
|
|
21
22
|
"lightningcss": "^1.29.3",
|
|
22
23
|
"postcss": "^8.5.3",
|
|
23
24
|
"postcss-combine-media-query": "^2.0.0",
|
|
24
|
-
"rscute": "^0.2.
|
|
25
|
-
"find-up": "^7.0.0"
|
|
25
|
+
"rscute": "^0.2.8"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|