Skip to content

Commit

Permalink
Merge pull request #3 from hyperweb-io/revert-2-fix/hyperweb-package-…
Browse files Browse the repository at this point in the history
…dist

Revert "fix: distribution config"
  • Loading branch information
Anmol1696 authored Oct 8, 2024
2 parents 196bc96 + 14555ce commit 1d57432
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 49 deletions.
24 changes: 6 additions & 18 deletions packages/hyperwebjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@
"version": "0.0.3",
"author": "Hyperweb <[email protected]>",
"description": "JS client for Hyperweb",
"source": "src/index.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.ts",
"exports": {
".": {
"types": "./dist/cjs/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "index.js",
"module": "esm/index.js",
"types": "index.d.ts",
"homepage": "https://github.com/hyperweb-io/hyperweb-build",
"license": "SEE LICENSE IN LICENSE",
"publishConfig": {
Expand All @@ -33,11 +24,8 @@
"clean": "rimraf dist/**",
"prepare": "npm run build",
"codegen": "ts-node ./scripts/codegen.ts",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "npm run clean; npm run codegen; tsc; tsc -p tsconfig.json; npm run copy",
"build:cjs": "npm run clean; npm run codegen; tsc; tsc -p tsconfig.node.json; npm run copy",
"build:esm:dev": "npm run clean; npm run codegen; tsc --declarationMap; tsc -p tsconfig.json; npm run copy",
"build:cjs:dev": "npm run clean; npm run codegen; tsc --declarationMap; tsc -p tsconfig.node.json; npm run copy",
"build": "npm run clean; npm run codegen; tsc; tsc -p tsconfig.esm.json; npm run copy",
"build:dev": "npm run clean; npm run codegen; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
"lint": "eslint . --fix",
"test": "jest",
"test:watch": "jest --watch"
Expand All @@ -57,4 +45,4 @@
},
"keywords": [],
"gitHead": "6941f0f94c741b25c3ad79d1c4c758065f1e36d9"
}
}
9 changes: 9 additions & 0 deletions packages/hyperwebjs/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist/esm",
"module": "es2022",
"rootDir": "src/",
"declaration": false
}
}
21 changes: 5 additions & 16 deletions packages/hyperwebjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
{
"extends": "./tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/esm",
"module": "esnext",
"moduleResolution": "node",
"target": "es2022",
"lib": ["es2022", "dom"],
"rootDir": "src/",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
"outDir": "dist",
"rootDir": "src/"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
"include": ["src/**/*.ts"],
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"]
}
15 changes: 0 additions & 15 deletions packages/hyperwebjs/tsconfig.node.json

This file was deleted.

0 comments on commit 1d57432

Please sign in to comment.