@plumeria/compiler 19.3.0 → 19.5.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plumeria/compiler",
3
- "version": "19.3.0",
4
- "description": "Plumeria swc based compiler for statically extracting css",
3
+ "version": "19.5.0",
4
+ "description": "Plumeria rust based compiler for statically extracting css",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/refirst11",
@@ -14,26 +14,60 @@
14
14
  "bugs": {
15
15
  "url": "https://github.com/zss-in-js/plumeria/issues"
16
16
  },
17
- "sideEffects": false,
18
- "main": "dist/index.js",
19
- "types": "dist/index.d.ts",
17
+ "main": "index.js",
18
+ "browser": "browser.js",
19
+ "types": "index.d.ts",
20
20
  "files": [
21
- "dist/"
21
+ "index.js",
22
+ "index.d.ts",
23
+ "browser.js"
22
24
  ],
23
- "dependencies": {
24
- "@plumeria/utils": "19.3.0"
25
+ "napi": {
26
+ "binaryName": "compiler",
27
+ "targets": [
28
+ "aarch64-linux-android",
29
+ "aarch64-apple-darwin",
30
+ "x86_64-apple-darwin",
31
+ "aarch64-unknown-linux-gnu",
32
+ "aarch64-unknown-linux-musl",
33
+ "armv7-unknown-linux-gnueabihf",
34
+ "x86_64-unknown-linux-gnu",
35
+ "x86_64-unknown-linux-musl",
36
+ "x86_64-unknown-freebsd",
37
+ "aarch64-pc-windows-msvc",
38
+ "x86_64-pc-windows-msvc",
39
+ "wasm32-wasip1-threads"
40
+ ]
25
41
  },
26
42
  "devDependencies": {
27
- "@rust-gear/glob": "1.2.1",
28
- "@swc/core": "1.15.47",
29
- "zss-engine": "2.8.0"
43
+ "@napi-rs/cli": "3.7.3",
44
+ "@napi-rs/wasm-runtime": "1.2.4"
45
+ },
46
+ "engines": {
47
+ "node": ">=20"
30
48
  },
31
49
  "publishConfig": {
32
50
  "access": "public",
33
51
  "provenance": true
34
52
  },
53
+ "optionalDependencies": {
54
+ "@plumeria/compiler-android-arm64": "19.5.0",
55
+ "@plumeria/compiler-darwin-arm64": "19.5.0",
56
+ "@plumeria/compiler-darwin-x64": "19.5.0",
57
+ "@plumeria/compiler-linux-arm64-gnu": "19.5.0",
58
+ "@plumeria/compiler-linux-arm64-musl": "19.5.0",
59
+ "@plumeria/compiler-linux-arm-gnueabihf": "19.5.0",
60
+ "@plumeria/compiler-linux-x64-gnu": "19.5.0",
61
+ "@plumeria/compiler-linux-x64-musl": "19.5.0",
62
+ "@plumeria/compiler-freebsd-x64": "19.5.0",
63
+ "@plumeria/compiler-win32-arm64-msvc": "19.5.0",
64
+ "@plumeria/compiler-win32-x64-msvc": "19.5.0",
65
+ "@plumeria/compiler-wasm32-wasi": "19.5.0"
66
+ },
35
67
  "scripts": {
36
- "build": "rimraf dist && pnpm cjs",
37
- "cjs": "tsc --project tsconfig.cjs.json"
68
+ "build": "napi build --platform --release --js index.js --dts index.d.ts",
69
+ "packages": "node scripts/generate-platform-packages.ts",
70
+ "readme": "node scripts/generate-platform-readme.ts",
71
+ "update:main": "node scripts/update-main-package.ts"
38
72
  }
39
73
  }
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { PropertyPolicyOptions } from '@plumeria/utils';
2
- interface CompilerOptions extends PropertyPolicyOptions {
3
- include: string[];
4
- exclude: string[];
5
- cwd?: string;
6
- styleProp?: string;
7
- }
8
- export declare function compileCSS(options: CompilerOptions): string;
9
- export {};