Migrate build setup
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"extends": "./node_modules/gts/",
|
||||
"parserOptions": {
|
||||
"warnOnUnsupportedTypeScriptVersion": false
|
||||
},
|
||||
"rules": {
|
||||
"@typescript-eslint/no-non-null-assertion": "off",
|
||||
"@typescript-eslint/no-unused-vars": ["error", {"args": "none", "destructuredArrayIgnorePattern": "^_"}],
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-empty-interface": "off",
|
||||
"@typescript-eslint/no-floating-promises": "off",
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"no-useless-escape": "off",
|
||||
"prefer-const": ["error", {"destructuring": "all"}],
|
||||
"object-curly-spacing": ["error", "never"],
|
||||
"array-bracket-spacing": ["error", "never"],
|
||||
"semi": ["error", "never"],
|
||||
"quotes": ["error", "double"]
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,2 +1 @@
|
||||
package-lock.json -diff
|
||||
yarn.lock -diff
|
||||
pnpm-lock.yaml -diff
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
name: tests
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4.1.0
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm i
|
||||
|
||||
- name: Lint
|
||||
run: pnpm run lint
|
||||
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
|
||||
- name: Test
|
||||
run: pnpm run test
|
||||
+8
-8
@@ -1,11 +1,11 @@
|
||||
node_modules
|
||||
dist
|
||||
build
|
||||
**/dist
|
||||
**/cached
|
||||
**/cache
|
||||
**/temp
|
||||
**/reference
|
||||
results
|
||||
.nyc_output
|
||||
*.tsbuildinfo
|
||||
.vscode
|
||||
.svelte-kit
|
||||
docs/.vitepress/dist
|
||||
docs/.vitepress/cached
|
||||
docs/.vitepress/cache
|
||||
docs/.vitepress/temp
|
||||
docs/reference
|
||||
docs/**/*.html
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
for package in $(./get_packages.py); do
|
||||
./build_and_link.sh $package
|
||||
|
||||
if [[ $? -eq 1 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
@@ -1,23 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
upstream=$1
|
||||
|
||||
npm run fix -w @welshman/$upstream
|
||||
npm run build -w @welshman/$upstream
|
||||
|
||||
if [[ $? -eq 1 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for downstream in $(./get_packages.py); do
|
||||
n=@welshman/$upstream
|
||||
f=packages/$downstream/package.json
|
||||
v=$(jq '.dependencies["'$n'"] // empty' $f)
|
||||
|
||||
if [[ ! -z $v ]]; then
|
||||
rm -rf packages/$downstream/node_modules/@welshman/$upstream
|
||||
cp -r packages/$upstream packages/$downstream/node_modules/@welshman/$upstream
|
||||
rm -rf node_modules/@welshman/$upstream
|
||||
cp -r packages/$upstream node_modules/@welshman/$upstream
|
||||
fi
|
||||
done
|
||||
@@ -0,0 +1,22 @@
|
||||
import globals from "globals";
|
||||
import js from "@eslint/js";
|
||||
import tsEslint from "typescript-eslint";
|
||||
import pluginReact from "eslint-plugin-react";
|
||||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
|
||||
export default tsEslint.config(
|
||||
{
|
||||
ignores: [
|
||||
"node_modules",
|
||||
"!.*",
|
||||
"**/dist",
|
||||
"**/build",
|
||||
],
|
||||
},
|
||||
{
|
||||
extends: [js.configs.recommended, ...tsEslint.configs.recommended],
|
||||
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
||||
languageOptions: { globals: globals.node },
|
||||
},
|
||||
eslintPluginPrettierRecommended,
|
||||
);
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
for package in $(./get_packages.py); do
|
||||
if [ $(./show_changes.sh $package | wc -l) -gt 0 ]; then
|
||||
echo $package
|
||||
fi
|
||||
done
|
||||
@@ -1,45 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import json
|
||||
|
||||
def get_deps(package):
|
||||
with open(os.path.join('packages', package, 'package.json'), 'r') as f:
|
||||
package_data = json.load(f)
|
||||
|
||||
dependencies = set()
|
||||
for dep_type in ['dependencies', 'devDependencies', 'peerDependencies']:
|
||||
if dep_type in package_data:
|
||||
dependencies.update(package_data[dep_type].keys())
|
||||
|
||||
return [
|
||||
dep.replace('@welshman/', '')
|
||||
for dep in dependencies
|
||||
if dep.startswith('@welshman/')
|
||||
]
|
||||
|
||||
def main():
|
||||
sorted_packages = []
|
||||
remaining_packages = {}
|
||||
for package in os.listdir('packages'):
|
||||
deps = get_deps(package)
|
||||
|
||||
if not deps:
|
||||
sorted_packages.append(package)
|
||||
else:
|
||||
remaining_packages[package] = deps
|
||||
|
||||
while remaining_packages:
|
||||
for package, deps in remaining_packages.items():
|
||||
if all([dep in sorted_packages for dep in deps]):
|
||||
sorted_packages.append(package)
|
||||
|
||||
for package in sorted_packages:
|
||||
if package in remaining_packages:
|
||||
del remaining_packages[package]
|
||||
|
||||
for package in sorted_packages:
|
||||
print(package)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
for package in $(./get_packages.py|sort); do
|
||||
version=$(sed -nr 's/ +"version": "(.+)",/\1/p' packages/$package/package.json)
|
||||
|
||||
echo '"@welshman/'$package'": "^'$version'",'
|
||||
done
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
upstream=$1
|
||||
|
||||
if [[ -z $upstream ]]; then
|
||||
echo "Please provide an upstream package name"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
version=$(sed -nr 's/ +"version": "(.+)",/\1/p' packages/$upstream/package.json)
|
||||
|
||||
for downstream in $(./get_packages.py); do
|
||||
n=@welshman/$upstream
|
||||
f=packages/$downstream/package.json
|
||||
v=$(jq '.dependencies["'$n'"] // empty' $f)
|
||||
|
||||
if [[ ! -z $v ]]; then
|
||||
jq '.dependencies["'$n'"]="'^$version'"' $f > $f.tmp
|
||||
mv $f.tmp $f
|
||||
mkdir -p packages/$downstream/node_modules/@welshman
|
||||
fi
|
||||
done
|
||||
|
||||
npm i
|
||||
Generated
-7932
File diff suppressed because it is too large
Load Diff
+13
-18
@@ -1,28 +1,23 @@
|
||||
{
|
||||
"name": "@welshman",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "vitest",
|
||||
"docs:dev": "vitepress dev docs",
|
||||
"docs:build": "npx typedoc && vitepress build docs",
|
||||
"docs:preview": "vitepress preview docs"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/coracle-social/skiff.git"
|
||||
"clean": "pnpm run -r clean",
|
||||
"build": "pnpm run -r build",
|
||||
"test": "pnpm run -r test",
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitest/coverage-v8": "^3.0.5",
|
||||
"fake-indexeddb": "^6.0.0",
|
||||
"gts": "^6.0.2",
|
||||
"happy-dom": "^17.1.0",
|
||||
"typedoc": "^0.27.9",
|
||||
"typedoc-plugin-markdown": "^4.4.2",
|
||||
"typedoc-vitepress-theme": "^1.1.2",
|
||||
"typescript": "^5.6.3",
|
||||
"vitepress": "^1.6.3",
|
||||
"vitest": "^3.0.5"
|
||||
"@eslint/js": "~9.23.0",
|
||||
"eslint": "~9.23.0",
|
||||
"eslint-plugin-prettier": "~5.2.5",
|
||||
"eslint-plugin-react": "~7.37.4",
|
||||
"globals": "~16.0.0",
|
||||
"prettier": "~3.5.3",
|
||||
"typescript": "~5.8.0",
|
||||
"typescript-eslint": "~8.29.0"
|
||||
}
|
||||
}
|
||||
|
||||
+19
-21
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
},
|
||||
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Generated
+3563
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
- 'packages/**'
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
for package in $(./get_packages.py); do
|
||||
npm run pub -w "packages/$package"
|
||||
done
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:recommended"
|
||||
],
|
||||
"ignorePresets": [
|
||||
":ignoreModulesAndTests"
|
||||
],
|
||||
"rangeStrategy": "replace",
|
||||
"automerge": true,
|
||||
"automergeType": "branch",
|
||||
"minimumReleaseAge": "14 days",
|
||||
"internalChecksFilter": "strict"
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
package=$1
|
||||
tag=$(git describe --tags --abbrev=0 --match=$package'/*')
|
||||
|
||||
git diff "$tag" "packages/$package"
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
status=$(git status | grep "nothing to commit")
|
||||
|
||||
if [[ -z "$status" ]]; then
|
||||
echo "Can't tag with uncommitted changes"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for pkg in $(./get_packages.py); do
|
||||
version=$(sed -nr 's/ +"version": "(.+)",/\1/p' packages/$pkg/package.json)
|
||||
|
||||
git tag "$pkg/$version" >/dev/null 2>&1
|
||||
done
|
||||
|
||||
git push
|
||||
git push --tags
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "nodenext",
|
||||
"moduleResolution": "nodenext",
|
||||
"target": "esnext",
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"noEmitOnError": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"types": [],
|
||||
"lib": ["esnext", "dom", "dom.iterable"],
|
||||
"noEmit": false
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@welshman/*": ["packages/*/src"]
|
||||
},
|
||||
"noEmit": true
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"name": "Welshman Docs",
|
||||
"out": "./docs/reference",
|
||||
"docsRoot": "./docs",
|
||||
"entryPoints": ["packages/*"],
|
||||
"entryPointStrategy": "packages",
|
||||
"exclude": ["**/normalize-url/*"],
|
||||
"plugin": ["typedoc-plugin-markdown", "typedoc-vitepress-theme"],
|
||||
"hideGenerator": true
|
||||
}
|
||||
Reference in New Issue
Block a user