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
+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"
}