-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
43 lines (43 loc) · 1.6 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"name": "sandpack-resolver",
"version": "0.2.1",
"main": "./lib/resolver.js",
"module": "./lib/resolver.mjs",
"types": "./lib/resolver.d.ts",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/codesandbox/sandpack-resolver.git"
},
"files": [
"lib",
"LICENSE",
"README.md",
"package.json"
],
"scripts": {
"test": "jest",
"typecheck": "tsc --noEmit",
"transpile:sync": "babel ./src/resolver.ts --out-file ./src/resolver.js && cp ./src/resolver.js ./lib/resolver.js",
"build": "tsc --project tsconfig.build.json && yarn transpile:sync",
"bundle": "yarn bundle:cjs && yarn bundle:esm && yarn clean:build",
"bundle:cjs": "esbuild ./lib/resolver.js --bundle --format=cjs --outfile=./lib/bundle.js --target=es2018",
"bundle:esm": "esbuild ./lib/resolver.js --bundle --format=esm --outfile=./lib/bundle.mjs --target=es2018",
"clean:build": "mv lib/bundle.js lib/bundle.tmp && mv lib/bundle.mjs lib/bundle.mjs.tmp && rm -rf lib/fixture lib/**.js* lib/**/**.js* && mv lib/bundle.tmp lib/resolver.js && mv lib/bundle.mjs.tmp lib/resolver.mjs",
"format": "prettier --write --with-node-modules \"./**/*.{ts,js,json,md}\"",
"prepack": "yarn build && yarn bundle && yarn test"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@swc-node/jest": "^1.5.5",
"@swc/core": "^1.3.14",
"@types/jest": "^29.2.2",
"@types/node": "^18.11.9",
"esbuild": "^0.15.13",
"jest": "^29.3.1",
"typescript": "^4.8.4",
"prettier": "^2.7.1"
}
}