Skip to content

Commit

Permalink
Remove submodule support to support 'moduleResolution': 'node'
Browse files Browse the repository at this point in the history
The project that I am currently working on requires moduleResolution: node.
Accordingly, since I am the primary consumer so far, I want to support that environment!
  • Loading branch information
quinnturner committed Apr 1, 2024
1 parent 7dad1d5 commit 7726730
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 27 deletions.
Binary file modified bun.lockb
Binary file not shown.
37 changes: 14 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "owasp",
"version": "1.0.2",
"version": "1.1.0",
"type": "module",
"license": "MIT",
"publishConfig": {
Expand All @@ -15,24 +15,14 @@
},
"keywords": ["owasp", "logging", "security"],
"exports": {
"./dom": {
".": {
"import": {
"types": "./dist/dom.d.ts",
"default": "./dist/dom.js"
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/dom.d.cts",
"default": "./dist/dom.cjs"
}
},
"./vocab": {
"import": {
"types": "./dist/vocab.d.ts",
"default": "./dist/vocab.js"
},
"require": {
"types": "./dist/vocab.d.cts",
"default": "./dist/vocab.cjs"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
Expand All @@ -47,12 +37,13 @@
"build": "tsup --config tsup.config.ts"
},
"devDependencies": {
"@biomejs/biome": "^1.4.1",
"@happy-dom/global-registrator": "^12.10.3",
"bun-types": "^1.0.17",
"tsup": "^8.0.1",
"type-fest": "^4.8.3",
"typescript": "^5.3.3"
"@biomejs/biome": "^1.6.3",
"@happy-dom/global-registrator": "^14.3.9",
"bun-types": "^1.0.36",
"tsup": "^8.0.2",
"type-fest": "^4.14.0",
"typescript": "^5.4.3"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"trustedDependencies": ["@biomejs/biome"]
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./dom/index.js";
export * from "./vocab/index.js";
5 changes: 1 addition & 4 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { defineConfig } from "tsup";

export default defineConfig({
entry: {
dom: "./src/dom/index.ts",
vocab: "./src/vocab/index.ts",
},
entry: ["src/index.ts"],
splitting: false,
sourcemap: true,
format: ["cjs", "esm"],
Expand Down

0 comments on commit 7726730

Please sign in to comment.