2020-02-16 10:51:42 +03:00
|
|
|
{
|
2021-05-21 09:57:17 +03:00
|
|
|
"name": "@swc/core",
|
2022-08-26 05:56:37 +03:00
|
|
|
"version": "1.2.244",
|
2021-05-21 09:57:17 +03:00
|
|
|
"description": "Super-fast alternative for babel",
|
|
|
|
"homepage": "https://swc.rs",
|
|
|
|
"main": "./index.js",
|
2022-03-01 11:41:45 +03:00
|
|
|
"bin": {
|
2022-03-02 06:23:01 +03:00
|
|
|
"swcx": "run_swcx.js"
|
2022-03-01 11:41:45 +03:00
|
|
|
},
|
2021-05-21 09:57:17 +03:00
|
|
|
"author": "강동윤 <kdy1997.dev@gmail.com>",
|
2022-02-22 12:03:40 +03:00
|
|
|
"license": "Apache-2.0",
|
2021-05-21 09:57:17 +03:00
|
|
|
"keywords": [
|
|
|
|
"swc",
|
2021-10-19 11:25:57 +03:00
|
|
|
"swcpack",
|
2021-05-21 09:57:17 +03:00
|
|
|
"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": {
|
|
|
|
"name": "swc",
|
|
|
|
"triples": {
|
|
|
|
"defaults": true,
|
|
|
|
"additional": [
|
|
|
|
"x86_64-unknown-linux-musl",
|
2021-12-02 06:57:27 +03:00
|
|
|
"x86_64-unknown-freebsd",
|
2021-05-21 09:57:17 +03:00
|
|
|
"i686-pc-windows-msvc",
|
|
|
|
"aarch64-unknown-linux-gnu",
|
|
|
|
"armv7-unknown-linux-gnueabihf",
|
|
|
|
"aarch64-apple-darwin",
|
2021-05-28 06:47:02 +03:00
|
|
|
"aarch64-linux-android",
|
2021-06-02 03:34:27 +03:00
|
|
|
"aarch64-unknown-linux-musl",
|
2021-12-24 05:21:24 +03:00
|
|
|
"aarch64-pc-windows-msvc",
|
|
|
|
"armv7-linux-androideabi"
|
2021-05-21 09:57:17 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"publishConfig": {
|
|
|
|
"registry": "https://registry.npmjs.org/",
|
|
|
|
"access": "public"
|
|
|
|
},
|
2021-08-13 20:17:54 +03:00
|
|
|
"types": "./index.d.ts",
|
2021-05-21 09:57:17 +03:00
|
|
|
"scripts": {
|
2021-12-12 14:41:01 +03:00
|
|
|
"changelog": "git cliff --output CHANGELOG.md",
|
2022-03-12 10:45:25 +03:00
|
|
|
"prepare": "husky install && git config feature.manyFiles true && node ./crates/swc_ecma_preset_env/scripts/copy-data.js",
|
2022-07-17 12:33:51 +03:00
|
|
|
"postinstall": "node postinstall.js",
|
2021-05-21 09:57:17 +03:00
|
|
|
"artifacts": "napi artifacts --dist scripts/npm",
|
|
|
|
"prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tagstyle npm",
|
2022-03-16 01:45:40 +03:00
|
|
|
"pack": "wasm-pack",
|
2021-10-31 04:04:18 +03:00
|
|
|
"build:ts": "tsc -d",
|
2022-08-16 09:01:49 +03:00
|
|
|
"build:wasm": "npm-run-all \"pack -- build ./bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
|
2022-08-24 08:23:27 +03:00
|
|
|
"build": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node --release",
|
|
|
|
"build:dev": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node",
|
2022-07-13 09:39:08 +03:00
|
|
|
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
|
2021-05-21 09:57:17 +03:00
|
|
|
"version": "napi version -p scripts/npm"
|
|
|
|
},
|
2022-03-16 12:58:24 +03:00
|
|
|
"lint-staged": {
|
|
|
|
"*.toml": [
|
|
|
|
"taplo format"
|
|
|
|
],
|
|
|
|
"*.rs": [
|
2022-04-24 19:04:20 +03:00
|
|
|
"rustfmt --"
|
2022-05-04 17:25:28 +03:00
|
|
|
],
|
2022-06-11 11:10:49 +03:00
|
|
|
"!(**/tests/**/*)*.js": [
|
2022-05-04 17:25:28 +03:00
|
|
|
"prettier --write"
|
|
|
|
],
|
2022-06-11 11:10:49 +03:00
|
|
|
"!(**/tests/**/*)*.ts": [
|
2022-05-04 17:25:28 +03:00
|
|
|
"prettier --write"
|
|
|
|
],
|
2022-06-11 11:10:49 +03:00
|
|
|
"!(**/tests/**/*)*.jsx": [
|
2022-05-04 17:25:28 +03:00
|
|
|
"prettier --write"
|
|
|
|
],
|
2022-06-11 11:10:49 +03:00
|
|
|
"!(**/tests/**/*)*.tsx": [
|
2022-05-04 17:25:28 +03:00
|
|
|
"prettier --write"
|
2022-03-16 12:58:24 +03:00
|
|
|
]
|
|
|
|
},
|
2021-05-21 09:57:17 +03:00
|
|
|
"devDependencies": {
|
2022-03-11 15:49:53 +03:00
|
|
|
"@babel/compat-data": "^7.17.0",
|
2021-05-21 09:57:17 +03:00
|
|
|
"@babel/core": "^7.13.16",
|
|
|
|
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
|
|
"@babel/plugin-proposal-decorators": "^7.13.15",
|
|
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
|
|
|
|
"@babel/preset-env": "^7.13.15",
|
|
|
|
"@babel/preset-react": "^7.13.13",
|
|
|
|
"@babel/preset-typescript": "^7.13.0",
|
|
|
|
"@babel/types": "^7.14.0",
|
2022-06-11 12:09:07 +03:00
|
|
|
"@napi-rs/cli": "^2.10.0",
|
2022-07-29 05:02:10 +03:00
|
|
|
"@swc/core": "^1.2.220",
|
2022-06-16 12:33:21 +03:00
|
|
|
"@swc/helpers": "^0.4.2",
|
2022-03-16 12:58:24 +03:00
|
|
|
"@taplo/cli": "^0.3.2",
|
2022-07-13 09:39:08 +03:00
|
|
|
"@types/jest": "^28.1.4",
|
2021-05-21 09:57:17 +03:00
|
|
|
"@types/node": "^14.14.41",
|
2021-11-25 14:16:46 +03:00
|
|
|
"acorn": "^8.6.0",
|
2021-11-26 09:04:41 +03:00
|
|
|
"acorn-jsx": "^5.3.2",
|
2021-05-21 09:57:17 +03:00
|
|
|
"axios": "^0.21.1",
|
|
|
|
"babel-plugin-transform-node-env-inline": "^0.4.3",
|
2021-11-26 09:04:41 +03:00
|
|
|
"benchmark": "^2.1.4",
|
2021-11-10 13:00:54 +03:00
|
|
|
"class-validator": "^0.13.1",
|
2021-05-27 09:10:23 +03:00
|
|
|
"core-js": "^2.6.11",
|
2022-03-11 15:49:53 +03:00
|
|
|
"core-js-compat": "^3.21.1",
|
2021-07-06 08:29:45 +03:00
|
|
|
"cross-env": "^7.0.3",
|
2021-10-19 11:25:57 +03:00
|
|
|
"cspell": "^5.12.3",
|
2021-12-11 10:59:21 +03:00
|
|
|
"expect": "^27.4.2",
|
2022-07-13 09:39:08 +03:00
|
|
|
"glob": "^8.0.3",
|
2021-10-19 11:25:57 +03:00
|
|
|
"husky": "^7.0.2",
|
2022-07-13 09:39:08 +03:00
|
|
|
"jest": "^28.1.2",
|
2022-05-17 10:34:47 +03:00
|
|
|
"js-beautify": "^1.14.3",
|
2022-03-16 12:58:24 +03:00
|
|
|
"lint-staged": "^12.3.6",
|
2021-05-21 09:57:17 +03:00
|
|
|
"lodash": "^4.17.21",
|
2021-12-11 10:59:21 +03:00
|
|
|
"mocha": "^9.1.3",
|
2022-03-16 01:45:40 +03:00
|
|
|
"npm-run-all": "^4.1.5",
|
2022-05-04 17:25:28 +03:00
|
|
|
"prettier": "^2.6.2",
|
2021-05-21 09:57:17 +03:00
|
|
|
"progress": "^2.0.3",
|
2021-10-14 16:48:14 +03:00
|
|
|
"prop-types": "^15.7.2",
|
|
|
|
"react": "^17.0.2",
|
2021-12-11 07:57:33 +03:00
|
|
|
"reflect-metadata": "^0.1.13",
|
2021-08-02 18:49:34 +03:00
|
|
|
"regenerator-runtime": "^0.13.9",
|
2021-05-21 09:57:17 +03:00
|
|
|
"source-map": "^0.7.3",
|
|
|
|
"source-map-support": "^0.5.19",
|
2021-08-02 18:49:34 +03:00
|
|
|
"sourcemap-validator": "^2.1.0",
|
2021-08-03 18:52:47 +03:00
|
|
|
"terser": "^5.7.1",
|
2022-02-08 20:10:54 +03:00
|
|
|
"ts-node": "^10.5.0",
|
2021-12-24 05:21:24 +03:00
|
|
|
"typescript": "^4.5.2"
|
2021-05-21 09:57:17 +03:00
|
|
|
},
|
|
|
|
"funding": {
|
|
|
|
"type": "opencollective",
|
|
|
|
"url": "https://opencollective.com/swc"
|
2022-03-01 11:41:45 +03:00
|
|
|
},
|
|
|
|
"optionalDependencies": {
|
2022-03-11 15:49:53 +03:00
|
|
|
"@swc/core-android-arm-eabi": "1.2.146",
|
|
|
|
"@swc/core-android-arm64": "1.2.146",
|
|
|
|
"@swc/core-darwin-arm64": "1.2.146",
|
2022-03-01 11:41:45 +03:00
|
|
|
"@swc/core-darwin-x64": "1.2.146",
|
|
|
|
"@swc/core-freebsd-x64": "1.2.146",
|
|
|
|
"@swc/core-linux-arm-gnueabihf": "1.2.146",
|
2022-03-11 15:49:53 +03:00
|
|
|
"@swc/core-linux-arm64-gnu": "1.2.146",
|
2022-03-01 11:41:45 +03:00
|
|
|
"@swc/core-linux-arm64-musl": "1.2.146",
|
2022-03-11 15:49:53 +03:00
|
|
|
"@swc/core-linux-x64-gnu": "1.2.146",
|
|
|
|
"@swc/core-linux-x64-musl": "1.2.146",
|
2022-03-01 11:41:45 +03:00
|
|
|
"@swc/core-win32-arm64-msvc": "1.2.146",
|
2022-03-11 15:49:53 +03:00
|
|
|
"@swc/core-win32-ia32-msvc": "1.2.146",
|
|
|
|
"@swc/core-win32-x64-msvc": "1.2.146"
|
2022-07-17 06:18:22 +03:00
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"CHANGELOG.md",
|
|
|
|
"Visitor.d.ts",
|
|
|
|
"index.d.ts",
|
|
|
|
"spack.js",
|
|
|
|
"util.d.ts",
|
|
|
|
"LICENSE",
|
|
|
|
"Visitor.js",
|
|
|
|
"binding.d.ts",
|
|
|
|
"index.js",
|
|
|
|
"run_swcx.js",
|
|
|
|
"types.d.ts",
|
|
|
|
"util.js",
|
|
|
|
"README.md",
|
|
|
|
"binding.js",
|
|
|
|
"package.json",
|
|
|
|
"spack.d.ts",
|
2022-07-17 12:33:51 +03:00
|
|
|
"types.js",
|
2022-07-30 06:44:37 +03:00
|
|
|
"postinstall.js",
|
2022-08-16 09:01:49 +03:00
|
|
|
"bindings/binding_core_wasm/pkg/binding_core_wasm.d.ts"
|
2022-07-17 06:18:22 +03:00
|
|
|
]
|
2022-08-25 10:32:04 +03:00
|
|
|
}
|