@xyo-network/xl1-protocol 1.3.36 → 1.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-protocol",
4
- "version": "1.3.36",
4
+ "version": "1.3.37",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -23,11 +23,13 @@
23
23
  "exports": {
24
24
  ".": {
25
25
  "types": "./dist/index.d.ts",
26
+ "source": "./src/index.ts",
26
27
  "default": "./dist/neutral/index.mjs"
27
28
  },
28
29
  "./package.json": "./package.json"
29
30
  },
30
31
  "module": "./dist/neutral/index.mjs",
32
+ "source": "./src/index.ts",
31
33
  "types": "./dist/index.d.ts",
32
34
  "scripts": {
33
35
  "package-compile": "package-compile-only && rollup --config rollup.dts.config.mjs"
@@ -1,37 +0,0 @@
1
- import dts from 'rollup-plugin-dts'
2
- import alias from '@rollup/plugin-alias'
3
-
4
- import { readFileSync } from 'node:fs'
5
- import PATH from 'node:path'
6
-
7
- export function parseTsconfigAliases(tsconfigPath = './tsconfig.json') {
8
- const tsconfig = JSON.parse(readFileSync(tsconfigPath, 'utf8'))
9
- const baseUrl = tsconfig.compilerOptions?.baseUrl || '.'
10
- const paths = tsconfig.compilerOptions?.paths || {}
11
-
12
- return Object.entries(paths).map(([alias, targets]) => {
13
- const find = alias.replace(/\/\*$/, '')
14
- const replacement = PATH.resolve(
15
- baseUrl,
16
- targets[0].replace(/\/\*$/, ''),
17
- )
18
- return { find, replacement }
19
- })
20
- }
21
-
22
- const aliasEntries = parseTsconfigAliases()
23
-
24
- export default [
25
- {
26
- input: 'src/index.ts',
27
- output: {
28
- file: 'dist/index.d.ts',
29
- format: 'es',
30
- sourcemap: true,
31
- },
32
- plugins: [
33
- alias({ entries: aliasEntries }),
34
- dts(),
35
- ],
36
- },
37
- ]