Skip to content

Commit 0ed68ef

Browse files
committed
chore: refactor workspaces
1 parent b344287 commit 0ed68ef

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

package-lock.json

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
],
1515
"scripts": {
1616
"test": "cargo test",
17-
"test:build": "rm -rf tests/fixture/simple/.swc && npm run build -w tests/fixture/simple",
1817
"format": "prettier --write tests/fixture/*/output.js",
1918
"prepack": "cargo build --release && cp ./target/wasm32-wasi/release/allow_importing_ts_extensions.wasm .",
2019
"semantic-release": "semantic-release"
@@ -35,7 +34,6 @@
3534
},
3635
"homepage": "https://github.com/2fd/swc-plugin-allow-importing-ts-extensions#readme",
3736
"devDependencies": {
38-
"prettier": "^3.2.5",
3937
"semantic-release": "^23.0.8"
4038
}
4139
}

tests/fixture/no-preserve-extensions/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
},
1010
"scripts": {
1111
"test": "echo \"Error: no test specified\" && exit 1",
12-
"build": "swc input.ts -o input.js"
12+
"build": "rm -rf .swc && swc input.ts -o input.js",
13+
"format": "prettier --write output.js"
1314
},
1415
"author": "",
1516
"license": "MIT",
1617
"devDependencies": {
1718
"@swc/cli": "^0.3.12",
18-
"@swc/core": "^1.4.14"
19+
"@swc/core": "^1.4.14",
20+
"prettier": "^3.2.5"
1921
},
2022
"dependencies": {
2123
"swc-plugin-allow-importing-ts-extensions": "file:../../.."

tests/fixture/preserve-extensions/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
},
1010
"scripts": {
1111
"test": "echo \"Error: no test specified\" && exit 1",
12-
"build": "swc input.ts -o input.js"
12+
"build": "rm -rf .swc && swc input.ts -o input.js",
13+
"format": "prettier --write output.js"
1314
},
1415
"author": "",
1516
"license": "MIT",
1617
"devDependencies": {
1718
"@swc/cli": "^0.3.12",
18-
"@swc/core": "^1.4.14"
19+
"@swc/core": "^1.4.14",
20+
"prettier": "^3.2.5"
1921
},
2022
"dependencies": {
2123
"swc-plugin-allow-importing-ts-extensions": "file:../../.."

tests/fixture/simple/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
},
1010
"scripts": {
1111
"test": "echo \"Error: no test specified\" && exit 1",
12-
"build": "swc input.ts -o input.js"
12+
"build": "rm -rf .swc && swc input.ts -o input.js",
13+
"format": "prettier --write output.js"
1314
},
1415
"author": "",
1516
"license": "MIT",
1617
"devDependencies": {
1718
"@swc/cli": "^0.3.12",
18-
"@swc/core": "^1.4.14"
19+
"@swc/core": "^1.4.14",
20+
"prettier": "^3.2.5"
1921
},
2022
"dependencies": {
2123
"swc-plugin-allow-importing-ts-extensions": "file:../../.."

0 commit comments

Comments
 (0)