swc/packages/core/package.json
Donny/강동윤 f960d52364
refactor(bindings): Make @swc/core a subpackage (#8625)
**Description:**

This is for consistency and future extensions.
2024-05-18 09:23:06 +09:00

104 lines
3.2 KiB
JSON

{
"name": "@swc/core",
"version": "1.5.8-nightly-20240516.2",
"description": "Super-fast alternative for babel",
"homepage": "https://swc.rs",
"main": "./src/index.js",
"author": "강동윤 <kdy1997.dev@gmail.com>",
"license": "Apache-2.0",
"keywords": [
"swc",
"swcpack",
"babel",
"typescript",
"rust",
"webpack",
"tsc"
],
"engines": {
"node": ">=10"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
},
"napi": {
"binaryName": "swc",
"targets": [
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"aarch64-unknown-linux-gnu",
"aarch64-apple-darwin",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"
]
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"types": "./src/index.d.ts",
"scripts": {
"changelog": "git cliff --output CHANGELOG.md",
"postinstall": "node postinstall.js",
"artifacts": "napi artifacts --npm-dir scripts/npm",
"prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tag-style npm",
"pack": "wasm-pack",
"build:ts": "tsc -d",
"build:wasm": "npm-run-all \"pack -- build ../../bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
"build": "tsc -d && napi build --manifest-path ../../bindings/Cargo.toml --platform -p binding_core_node --js ./binding.js --dts ./binding.d.ts --release -o .",
"build:dev": "tsc -d && napi build --manifest-path ../../bindings/Cargo.toml --platform -p binding_core_node --js ./binding.js --dts ./binding.d.ts -o .",
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./jest.config.js",
"version": "napi version --npm-dir scripts/npm"
},
"peerDependencies": {
"@swc/helpers": "*"
},
"peerDependenciesMeta": {
"@swc/helpers": {
"optional": true
}
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/swc"
},
"files": [
"CHANGELOG.md",
"src/Visitor.d.ts",
"src/index.d.ts",
"src/spack.js",
"src/util.d.ts",
"LICENSE",
"src/Visitor.js",
"src/binding.d.ts",
"src/index.js",
"src/types.d.ts",
"src/util.js",
"README.md",
"src/binding.js",
"package.json",
"src/spack.d.ts",
"src/types.js",
"src/postinstall.js",
"bindings/binding_core_wasm/pkg/binding_core_wasm.d.ts"
],
"dependencies": {
"@swc/counter": "^0.1.3",
"@swc/types": "workspace:^"
},
"devDependencies": {
"@napi-rs/cli": "^3.0.0-alpha.43",
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"typescript": "^5.3.3"
}
}