-
Notifications
You must be signed in to change notification settings - Fork 0
feat(tsconfig): add tsconfig.build.json for distribution #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,40 @@ | ||||||||||||||||||||
| name: Release | ||||||||||||||||||||
|
|
||||||||||||||||||||
| on: | ||||||||||||||||||||
| release: | ||||||||||||||||||||
| types: | ||||||||||||||||||||
| - published | ||||||||||||||||||||
|
|
||||||||||||||||||||
| permissions: | ||||||||||||||||||||
| contents: read | ||||||||||||||||||||
| id-token: write | ||||||||||||||||||||
|
|
||||||||||||||||||||
| jobs: | ||||||||||||||||||||
| release: | ||||||||||||||||||||
| name: Release | ||||||||||||||||||||
|
|
||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||
|
|
||||||||||||||||||||
| steps: | ||||||||||||||||||||
| - name: Checkout Repo | ||||||||||||||||||||
| uses: actions/checkout@v5 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - name: Setup Bun | ||||||||||||||||||||
| uses: oven-sh/setup-bun@v2 | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| bun-version: 1.2.21 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - name: Set package version | ||||||||||||||||||||
| env: | ||||||||||||||||||||
| VERSION: ${{ github.ref_name }} | ||||||||||||||||||||
| run: | | ||||||||||||||||||||
| echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - name: Install Dependencies | ||||||||||||||||||||
| run: bun install --frozen-lockfile | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
Comment on lines
+33
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Build explicitly before publish (don’t rely on lifecycle) To avoid CLI/lifecycle discrepancies, run the build step explicitly. - name: Install Dependencies
run: bun install --frozen-lockfile
+ - name: Build dist
+ run: bun run build
+
- name: Publish📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
| - name: Publish | ||||||||||||||||||||
| env: | ||||||||||||||||||||
| NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} | ||||||||||||||||||||
| TAG: ${{ github.event.release.prerelease && 'canary' || 'latest' }} | ||||||||||||||||||||
| run: bun publish --tag=${{ env.TAG }} | ||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,35 @@ | ||
| { | ||
| "name": "@daxserver/validation-schema-codegen", | ||
| "version": "0.1.0", | ||
| "description": "Codegen for validation schemas", | ||
| "private": true, | ||
| "main": "src/index.ts", | ||
| "module": "src/index.ts", | ||
| "version": "dev", | ||
| "description": "Code generator for validation schemas for Typebox", | ||
| "keywords": [ | ||
| "typebox", | ||
| "codegenerator", | ||
| "validation" | ||
| ], | ||
| "author": { | ||
| "name": "Srihari Thalla", | ||
| "email": "daxserver@icloud.com" | ||
| }, | ||
| "type": "module", | ||
| "main": "dist/index.js", | ||
| "module": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "exports": { | ||
| ".": { | ||
| "import": "./dist/index.js", | ||
| "types": "./dist/index.d.ts" | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "private": false, | ||
| "publishConfig": { | ||
| "access": "public", | ||
| "provenance": true, | ||
| "tag": "latest" | ||
| }, | ||
|
Comment on lines
+28
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainProvenance + Bun publish: verify support
🌐 Web query: 💡 Result: Short answer: No. Evidence:
If you want, I can check the exact bun 1.2.21 release notes or test a local bun 1.2.21 install to confirm behavior. Remove 🤖 Prompt for AI Agents |
||
| "dependencies": { | ||
| "graphology": "^0.26.0", | ||
| "graphology-dag": "^0.4.1", | ||
|
|
@@ -29,15 +53,17 @@ | |
| "prettier": "^3.6.2", | ||
| "prettier-plugin-organize-imports": "^4.2.0", | ||
| "ts-morph": "^26.0.0", | ||
| "typescript-eslint": "^8.41.0", | ||
| "wikibase-sdk": "^10.2.3" | ||
| "tsc-alias": "^1.8.16", | ||
| "typescript-eslint": "^8.41.0" | ||
| }, | ||
| "peerDependencies": { | ||
| "typescript": "~5.9.2" | ||
| }, | ||
| "scripts": { | ||
| "build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json", | ||
| "format": "prettier --cache --write .", | ||
| "typecheck": "tsc --noEmit", | ||
| "lint": "eslint" | ||
| "lint": "eslint", | ||
| "prepublishOnly": "bun run build", | ||
| "typecheck": "tsc --noEmit" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "extends": "./tsconfig.json", | ||
| "compilerOptions": { | ||
| "noEmit": false, | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "sourceMap": true, | ||
| "outDir": "dist", | ||
| "rootDir": "src", | ||
| "moduleResolution": "node", | ||
| "module": "ESNext", | ||
| "target": "ES2022", | ||
| "allowImportingTsExtensions": false, | ||
| "verbatimModuleSyntax": false | ||
| }, | ||
| "include": [ | ||
| "src/**/*" | ||
| ], | ||
| "exclude": [ | ||
| "tests/**/*", | ||
| "**/*.test.ts", | ||
| "**/*.spec.ts", | ||
| "dist", | ||
| "node_modules" | ||
| ] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.