WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 8110392

Browse files
Merge pull request #9 from codesandbox/fix-typings
fix typings
2 parents de8fd4e + 5d4c765 commit 8110392

File tree

3 files changed

+681
-593
lines changed

3 files changed

+681
-593
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "static-browser-server",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"main": "./out/lib/main.js",
5-
"types": "./src/lib/main.ts",
5+
"types": "./out/lib/main.d.ts",
66
"repository": "https://github.com/codesandbox/static-browser-server.git",
77
"author": "Jasper De Moor <[email protected]>",
88
"license": "Apache-2.0",
@@ -15,7 +15,8 @@
1515
],
1616
"scripts": {
1717
"build:relay": "node -r esbuild-register ./build-relay.ts",
18-
"build:lib": "esbuild ./src/lib/main.ts --bundle --outdir=out/lib --format=cjs",
18+
"build:types": "tsc -p tsconfig.types.json",
19+
"build:lib": "esbuild ./src/lib/main.ts --bundle --outdir=out/lib --format=cjs && pnpm build:types",
1920
"build:demo": "node -r esbuild-register ./build-demo.ts",
2021
"build": "rm -rf out && pnpm build:lib && pnpm build:relay && pnpm build:demo",
2122
"build:prod": "MINIFY=true && pnpm build",

0 commit comments

Comments
 (0)