Migrate build setup

This commit is contained in:
Jon Staab
2025-04-02 10:00:00 -07:00
parent c434955c2d
commit 0d2ef9b816
57 changed files with 3975 additions and 8459 deletions
+19 -21
View File
@@ -8,36 +8,34 @@
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@types/throttle-debounce": "^5.0.2",
"@welshman/dvm": "^0.1.1",
"@welshman/feeds": "^0.1.1",
"@welshman/lib": "^0.1.1",
"@welshman/relay": "^0.1.1",
"@welshman/net": "^0.1.1",
"@welshman/signer": "^0.1.3",
"@welshman/store": "^0.1.2",
"@welshman/util": "^0.1.2",
"@welshman/dvm": "workspace:*",
"@welshman/feeds": "workspace:*",
"@welshman/lib": "workspace:*",
"@welshman/relay": "workspace:*",
"@welshman/net": "workspace:*",
"@welshman/signer": "workspace:*",
"@welshman/store": "workspace:*",
"@welshman/util": "workspace:*",
"fuse.js": "^7.0.0",
"idb": "^8.0.0",
"svelte": "^4.2.18",
"throttle-debounce": "^5.0.2"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+11 -18
View File
@@ -7,30 +7,23 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"engines": {
"node": ">=12.0.0"
},
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@braintree/sanitize-url": "^7.0.2",
"@welshman/lib": "^0.1.1",
"nostr-tools": "^2.7.2"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+15 -18
View File
@@ -7,29 +7,26 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@noble/hashes": "^1.6.1",
"@welshman/lib": "^0.1.1",
"@welshman/net": "^0.1.1",
"@welshman/util": "^0.1.2",
"@welshman/signer": "^0.1.3"
"@welshman/lib": "workspace:*",
"@welshman/net": "workspace:*",
"@welshman/util": "workspace:*",
"@welshman/signer": "workspace:*"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+16 -16
View File
@@ -8,23 +8,19 @@
"access": "public"
},
"type": "module",
"files": [
"build"
],
"types": "./build/src/index.d.ts",
"main": "dist/index",
"types": "dist/index",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
},
"./index.css": "./build/src/index.css"
"./index.css": "dist/index.css"
},
"files": [
"dist"
],
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc && cp src/index.css build/src/index.css",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@tiptap/core": "^2.11.5",
@@ -40,10 +36,14 @@
"@tiptap/extension-text": "^2.11.5",
"@tiptap/pm": "^2.11.5",
"@tiptap/suggestion": "^2.11.5",
"@welshman/lib": "^0.1.1",
"@welshman/util": "^0.1.2",
"@welshman/lib": "workspace:*",
"@welshman/util": "workspace:*",
"nostr-editor": "^0.0.4-pre.13",
"nostr-tools": "^2.10.4",
"tippy.js": "^6.3.7"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -13
View File
@@ -1,15 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"skipLibCheck": true,
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+13 -16
View File
@@ -7,26 +7,23 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@welshman/lib": "^0.1.1",
"@welshman/util": "^0.1.2"
"@welshman/lib": "workspace:*",
"@welshman/util": "workspace:*"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+11 -13
View File
@@ -12,25 +12,23 @@
},
"type": "module",
"files": [
"build"
"dist"
],
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"main": "dist/index",
"types": "dist/index",
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@scure/base": "^1.1.6",
"@types/events": "^3.0.3",
"events": "^3.3.0"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+14 -16
View File
@@ -8,27 +8,25 @@
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@welshman/lib": "^0.1.1",
"@welshman/relay": "^0.1.1",
"@welshman/util": "^0.1.2",
"@welshman/lib": "workspace:*",
"@welshman/relay": "workspace:*",
"@welshman/util": "workspace:*",
"isomorphic-ws": "^5.0.0"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+13 -15
View File
@@ -8,25 +8,23 @@
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@welshman/lib": "^0.1.1",
"@welshman/util": "^0.1.2"
"@welshman/lib": "workspace:*",
"@welshman/util": "workspace:*"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+14 -19
View File
@@ -8,34 +8,29 @@
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"engines": {
"node": ">=10.x"
},
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@noble/curves": "^1.7.0",
"@noble/hashes": "^1.6.1",
"@welshman/lib": "^0.1.1",
"@welshman/net": "^0.1.1",
"@welshman/util": "^0.1.2",
"@welshman/lib": "workspace:*",
"@welshman/net": "workspace:*",
"@welshman/util": "workspace:*",
"nostr-tools": "^2.7.2"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
},
"peerDependencies": {
"nostr-signer-capacitor-plugin": "^0.0.3"
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+14 -16
View File
@@ -8,27 +8,25 @@
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@welshman/lib": "^0.1.1",
"@welshman/util": "^0.1.2",
"@welshman/relay": "^0.1.1",
"@welshman/lib": "workspace:*",
"@welshman/util": "workspace:*",
"@welshman/relay": "workspace:*",
"svelte": "^4.2.18"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -12
View File
@@ -1,14 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}
+12 -17
View File
@@ -8,30 +8,25 @@
"access": "public"
},
"type": "module",
"main": "dist/index",
"types": "dist/index",
"files": [
"build"
"dist"
],
"engines": {
"node": ">=10.4.0"
},
"types": "./build/src/index.d.ts",
"exports": {
".": {
"types": "./build/src/index.d.ts",
"import": "./build/src/index.js",
"require": "./build/src/index.js"
}
},
"scripts": {
"pub": "npm run lint && npm run build && npm publish",
"build": "gts clean && tsc",
"lint": "gts lint",
"fix": "gts fix"
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@welshman/lib": "workspace:*",
"@types/ws": "^8.5.13",
"@welshman/lib": "^0.1.1",
"nostr-tools": "^2.7.2",
"nostr-wasm": "^0.1.0"
},
"devDependencies": {
"rimraf": "~6.0.0",
"typescript": "~5.8.0"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
+1 -13
View File
@@ -1,15 +1,3 @@
{
"extends": "../../node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"module": "nodenext",
"moduleResolution": "nodenext",
"skipLibCheck": true,
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
"extends": "../../tsconfig.json"
}