Commit 8a337686 authored by nanahira's avatar nanahira

change path

parent d3ae12fa
......@@ -2,27 +2,27 @@
"name": "satori-tsx",
"description": "TSX support package for Satori element.",
"version": "1.0.11",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./jsx-runtime/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"types": "./jsx-runtime/index.d.ts"
},
"./jsx-runtime": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"types": "./jsx-runtime/index.d.ts"
}
},
"scripts": {
"compile:cjs": "esbuild index.ts --outfile=dist/index.cjs --bundle --sourcemap --platform=node --target=es2019 --external:@satorijs/element",
"compile:esm": "esbuild index.ts --outfile=dist/index.mjs --bundle --sourcemap --platform=neutral --target=esnext --external:@satorijs/element",
"compile:types": "tsc --emitDeclarationOnly --declaration",
"compile:types": "tsc -p ./tsconfig.typings.json",
"lint": "eslint --fix .",
"build": "rimraf dist jsx-runtime && npm run compile:cjs && npm run compile:esm && npm run compile:types && cp -rf dist jsx-runtime",
"build": "rimraf dist jsx-runtime && npm run compile:cjs && npm run compile:esm && npm run compile:types",
"test": "jest --passWithNoTests",
"start": "node dist/index.js"
},
......
{
"extends": "./tsconfig.json",
"compilerOptions": {
"emitDeclarationOnly": true,
"declaration": true,
"outDir": "jsx-runtime"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment