refactor(jslib): separate `src` and `dist` dirs

(break tests)
feat/tables
Tomáš Mládek 2024-02-17 15:12:23 +01:00
parent e32233c4f7
commit 4c3727451b
12 changed files with 32 additions and 19 deletions

3
sdks/js/.gitignore vendored
View File

@ -1,3 +1,2 @@
node_modules
*.wasm
*.js
dist

View File

@ -2,6 +2,17 @@
"name": "@upnd/upend",
"version": "0.4.1",
"description": "Client library to interact with the UpEnd system.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*"
],
"exports": {
".": "./dist/index.js",
"./*": "./dist/*.js",
"./wasm": "./dist/wasm/index.js",
"./wasm/*": "./dist/wasm/*.js"
},
"scripts": {
"build": "tsc --build --verbose",
"test": "pnpm build && ava",
@ -9,11 +20,6 @@
},
"author": "Tomáš Mládek <t@mldk.cz>",
"license": "AGPL-3.0",
"files": [
"**/*.ts",
"**/*.js",
"**/*.wasm"
],
"devDependencies": {
"@types/debug": "^4.1.8",
"@typescript-eslint/eslint-plugin": "latest",

View File

@ -1,6 +1,6 @@
import LRU from "lru-cache";
import type { Query, UpObject } from ".";
import { UpListing } from ".";
import type { Query, UpObject } from "./index";
import { UpListing } from "./index";
import type {
Address,
ADDRESS_TYPE,

View File

@ -1,5 +1,5 @@
import type { AddressComponents, AddressTypeConstants } from ".";
import { UpEndWasmExtensions } from ".";
import type { AddressComponents, AddressTypeConstants } from "./index";
import { UpEndWasmExtensions } from "./index";
import {
addr_to_components,
components_to_addr,

View File

@ -1,5 +1,5 @@
import type { AddressComponents, AddressTypeConstants } from ".";
import { UpEndWasmExtensions } from ".";
import type { AddressComponents, AddressTypeConstants } from "./index";
import { UpEndWasmExtensions } from "./index";
import type { InitInput } from "@upnd/wasm-web";
import {
addr_to_components,

View File

@ -1,11 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es2019", "DOM"],
"module": "commonjs",
"importsNotUsedAsValues": "error",
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true
}
"importsNotUsedAsValues": "error",
"lib": [
"es2019",
"DOM"
],
"module": "commonjs",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"target": "es5"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}