Skip to content

Commit

Permalink
exporting stubs for system info 'off' builds
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Nov 17, 2023
1 parent bf09cad commit 0e696ef
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 21 deletions.
16 changes: 8 additions & 8 deletions packages/payloadset/packages/system/packages/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
"typescript": "^5.2.2"
},
"description": "Typescript/Javascript Plugins for XYO Platform",
"docs": "dist/docs.json",
"types": "dist/node/index.d.ts",
"exports": {
".": {
"browser": {
Expand All @@ -37,19 +35,21 @@
},
"node": {
"require": {
"types": "./dist/node/index.d.ts",
"default": "./dist/node/index.js"
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.mjs"
"default": "./dist/node/index.js"
}
}
},
"./package.json": "./package.json"
},
"main": "dist/node/index.js",
"module": "dist/node/index.mjs",
"main": "dist/node/index.cjs",
"module": "dist/node/index.js",
"types": "dist/node/index.d.mts",
"type": "module",
"homepage": "https://xyo.network",
"license": "LGPL-3.0-only",
"publishConfig": {
Expand All @@ -61,4 +61,4 @@
},
"sideEffects": false,
"version": "2.80.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
"typescript": "^5.2.2"
},
"description": "Typescript/Javascript Plugins for XYO Platform",
"docs": "dist/docs.json",
"types": "dist/browser/index.d.ts",
"exports": {
".": {
"browser": {
Expand All @@ -43,12 +41,24 @@
"types": "./dist/browser/index.d.mts",
"default": "./dist/browser/index.js"
}
},
"node": {
"require": {
"types": "./dist/node/index.d.cts",
"default": "./dist/node/stub.cjs"
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/stub.js"
}
}
},
"./package.json": "./package.json"
},
"main": "dist/browser/index.cjs",
"module": "dist/browser/index.js",
"types": "dist/browser/index.d.mts",
"type": "module",
"homepage": "https://xyo.network",
"license": "LGPL-3.0-only",
"publishConfig": {
Expand All @@ -60,4 +70,4 @@
},
"sideEffects": false,
"version": "2.80.3"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line import/no-default-export
export default {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const config: XyTsupConfig = {
src: true,
},
entryMode: 'single',
node: {},
node: {
src: { entry: ['./src/stub.ts'] },
},
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,35 @@
"typescript": "^5.2.2"
},
"description": "Typescript/Javascript Plugins for XYO Platform",
"docs": "dist/docs.json",
"types": "dist/node/index.d.ts",
"exports": {
".": {
"browser": {
"require": {
"types": "./dist/browser/index.d.cts",
"default": "./dist/browser/stub.cjs"
},
"import": {
"types": "./dist/browser/index.d.mts",
"default": "./dist/browser/stub.js"
}
},
"node": {
"require": {
"types": "./dist/node/index.d.ts",
"default": "./dist/node/index.js"
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.mjs"
"default": "./dist/node/index.js"
}
}
},
"./package.json": "./package.json"
},
"main": "dist/node/index.js",
"module": "dist/node/index.mjs",
"main": "dist/node/index.cjs",
"module": "dist/node/index.js",
"types": "dist/node/index.d.mts",
"type": "module",
"homepage": "https://xyo.network",
"license": "LGPL-3.0-only",
"publishConfig": {
Expand All @@ -56,4 +66,4 @@
},
"sideEffects": false,
"version": "2.80.3"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line import/no-default-export
export default {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
const config: XyTsupConfig = {
compile: {
browser: {},
browser: {
src: { entry: ['./src/stub.ts'] },
},
node: {
src: true,
},
Expand Down

0 comments on commit 0e696ef

Please sign in to comment.