swc-plugin-obsidian 2.13.1 → 3.0.0-alpha.8
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/README.md +18 -0
- package/package.json +4 -4
- package/src/swc_plugin_obsidian.wasm +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# SWC-PLUGIN-OBSIDIAN
|
|
2
|
+
|
|
3
|
+
This is Obsidian's [SWC](https://swc.rs/) plugin.
|
|
4
|
+
|
|
5
|
+
## Local development
|
|
6
|
+
|
|
7
|
+
### Install dependencies
|
|
8
|
+
```bash
|
|
9
|
+
yarn && yarn build:local
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
### Run tests
|
|
13
|
+
```bash
|
|
14
|
+
yarn test:local
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Choosing an SWC version
|
|
18
|
+
Refer to [plugins.swc.rs](https://plugins.swc.rs/) for swc version compatibility
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swc-plugin-obsidian",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.8",
|
|
4
4
|
"description": "SWC plugin for Obsidian to be used with Vite or NestJS",
|
|
5
5
|
"author": "Guy Carmeli",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"build:local": "RUSTFLAGS=\"-C debuginfo=2\" cargo build --release --target wasm32-wasi",
|
|
10
10
|
"prepack:disabled": "yarn copyBinary",
|
|
11
11
|
"copyBinary": "cp target/wasm32-wasi/release/swc_plugin_obsidian.wasm src",
|
|
12
|
-
"cleanBuildAndCopy": "cargo clean && yarn build && yarn copyBinary",
|
|
12
|
+
"cleanBuildAndCopy": "cargo clean && yarn build:local && yarn copyBinary",
|
|
13
13
|
"test": "echo Tests skipped",
|
|
14
14
|
"test:local": "cargo test"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@swc/core": "^1.
|
|
17
|
+
"@swc/core": "^1.7.36",
|
|
18
18
|
"react-obsidian": "2.x"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@swc/core": "^1.
|
|
21
|
+
"@swc/core": "^1.7.36",
|
|
22
22
|
"react-obsidian": "workspace:*",
|
|
23
23
|
"typescript": "^5.2.2"
|
|
24
24
|
},
|
|
Binary file
|