Commit 8a337686 authored by nanahira's avatar nanahira

change path

parent d3ae12fa
...@@ -2,27 +2,27 @@ ...@@ -2,27 +2,27 @@
"name": "satori-tsx", "name": "satori-tsx",
"description": "TSX support package for Satori element.", "description": "TSX support package for Satori element.",
"version": "1.0.11", "version": "1.0.11",
"main": "dist/index.cjs", "main": "./dist/index.cjs",
"module": "dist/index.mjs", "module": "./dist/index.mjs",
"types": "dist/index.d.ts", "types": "./jsx-runtime/index.d.ts",
"exports": { "exports": {
".": { ".": {
"require": "./dist/index.cjs", "require": "./dist/index.cjs",
"import": "./dist/index.mjs", "import": "./dist/index.mjs",
"types": "./dist/index.d.ts" "types": "./jsx-runtime/index.d.ts"
}, },
"./jsx-runtime": { "./jsx-runtime": {
"require": "./dist/index.cjs", "require": "./dist/index.cjs",
"import": "./dist/index.mjs", "import": "./dist/index.mjs",
"types": "./dist/index.d.ts" "types": "./jsx-runtime/index.d.ts"
} }
}, },
"scripts": { "scripts": {
"compile:cjs": "esbuild index.ts --outfile=dist/index.cjs --bundle --sourcemap --platform=node --target=es2019 --external:@satorijs/element", "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: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 .", "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", "test": "jest --passWithNoTests",
"start": "node dist/index.js" "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