Skip to content

Commit

Permalink
Make real builds
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Oct 20, 2023
1 parent 4644b7c commit 125bb3d
Show file tree
Hide file tree
Showing 28 changed files with 114 additions and 54 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/autopublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
- run: HUSKY=0 bun install
env:
HUSKY: 0

- run: bun run build

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
"lint": "bunx turbo run lint --continue -- --quiet",
"typecheck": "bunx turbo run typecheck --continue",
"graphql-codegen": "bunx turbo run graphql-codegen",
"build": "bunx turbo run build",
"prepare": "husky install",
"pre-push": "bunx turbo run lint test typecheck --continue",
"generate-cms-json-schema": "typescript-json-schema ./packages/cms/tsconfig.json CmsConfigFile --include ./packages/cms/types.ts --out ./packages/cms/entities-json-schema.json --required --strictNullChecks --rejectDateType",
"fix-workspace-dependencies": "find . -type f -name 'package.json' -not -path './package.json' -not -path '*/node_modules/*' -exec perl -pi -e 's/\"workspace:[^\"]*\"/\"*\"/g' {} \\;",
"changeset-release": "bun run fix-workspace-dependencies && bunx changeset publish",
"reinstall": "rm -rf node_modules/ && rm bun.lockb && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + && bun install",
"clean": "git clean -Xdf"
"clean-all": "git clean -Xdf",
"clean": "find . -type f \\( -name \"*.js\" -o -name \"*.mjs\" -o -name \"*.d.mts\" -o -name \"*.d.ts\" \\) -not -name \"apps/todo-app-with-auth/index.js\" -not -name \"packages/auth-expo/index.js\" -not -name \"packages/urql-expo/index.js\" -not -name \"*.config.js\" -not -path \"./node_modules/*\" -not -path \"./.expo/*\" -delete"
},
"keywords": [],
"author": "",
Expand Down
3 changes: 1 addition & 2 deletions packages/apple-app-site-association/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=.",
"clean": "find . -type f \\( -name \"*.js\" -o -name \"*.mjs\" -o -name \"*.d.mts\" -o -name \"*.d.ts\" \\) -delete"
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
7 changes: 5 additions & 2 deletions packages/auth-anonymous/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"name": "zemble-plugin-auth-anonymous",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"typecheck": "tsc --noEmit",
"graphql-codegen": "graphql-codegen"
"graphql-codegen": "graphql-codegen",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
7 changes: 5 additions & 2 deletions packages/auth-api-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"name": "zemble-plugin-auth-api-token",
"version": "0.0.13",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"graphql-codegen": "graphql-codegen",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
3 changes: 2 additions & 1 deletion packages/auth-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"dev": "zemble-bun index.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"dependencies": {
"@react-native-async-storage/async-storage": "1.18.2",
Expand Down
7 changes: 5 additions & 2 deletions packages/auth-otp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
"name": "zemble-plugin-auth-otp",
"version": "0.0.13",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"test": "bun test",
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"typecheck": "tsc --noEmit",
"graphql-codegen": "graphql-codegen"
"graphql-codegen": "graphql-codegen",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const { generateKeyPair } = require('node:crypto')
const fs = require('node:fs')
const path = require('node:path')
import { generateKeyPair } from 'node:crypto'
import fs from 'node:fs'
import path from 'node:path'

generateKeyPair('rsa', {
void generateKeyPair('rsa', {
modulusLength: 4096,
publicKeyEncoding: {
type: 'spki',
Expand Down
10 changes: 5 additions & 5 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "zemble-plugin-auth",
"version": "0.0.13",
"description": "",
"main": "plugin.ts",
"bin": {
"readapt-auth-generate-keys": "./generate-keys.js"
},
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"test": "bun test",
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"graphql-codegen": "graphql-codegen",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
3 changes: 1 addition & 2 deletions packages/bull/ZembleQueueMock.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable functional/immutable-data */
/* eslint-disable functional/prefer-readonly-type */
import { mock } from 'bun:test'

import type { ZembleQueueBull, ZembleQueueConfig } from './ZembleQueueBull'
import type {
Expand Down Expand Up @@ -63,7 +62,7 @@ class ZembleQueueMock<DataType = unknown, ReturnType = unknown> implements IZemb
attemptsMade: 0,
data,
name,
progress: mock(() => ({})),
progress: () => ({}),
...(opts || {}),
} as unknown as Job<DataType, ReturnType, string>

Expand Down
11 changes: 8 additions & 3 deletions packages/bull/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"name": "zemble-plugin-bull",
"version": "0.0.13",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"dev": "REDIS_URL=redis://localhost:6379 zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"graphql-codegen": "graphql-codegen",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand All @@ -29,6 +32,8 @@
"zemble-plugin-auth": "workspace:*"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.1"
"@tsconfig/node20": "^20.1.1",
"bun": "^1.0.6",
"bun-types": "^1.0.6"
}
}
10 changes: 7 additions & 3 deletions packages/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@
"name": "@zemble/bun",
"version": "0.0.4",
"description": "",
"main": "serve.ts",
"main": "serve.js",
"module": "serve.mjs",
"types": "serve.d.ts",
"bin": {
"zemble-bun": "./cli.ts"
},
"scripts": {
"dev": "bunx cli.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@zemble/core": "workspace:*"
"@zemble/core": "workspace:*",
"bun": "^1.0.6"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.1"
Expand Down
4 changes: 3 additions & 1 deletion packages/cms-users/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "zemble-plugin-cms-users",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"private": true,
"scripts": {
"test": "bun test",
Expand Down
7 changes: 5 additions & 2 deletions packages/cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
"name": "zemble-plugin-cms",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"private": true,
"scripts": {
"test": "bun test",
"dev": "MONGO_URL=mongodb://localhost:27017/test-db zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"graphql-codegen": "graphql-codegen",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
6 changes: 4 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
"name": "@zemble/core",
"version": "0.0.11",
"description": "",
"main": "index.ts",
"main": "index.js",
"module": "index.mjs",
"types": "index.d.ts",
"scripts": {
"test": "bun test",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"dev": "bun server.ts",
"typecheck": "tsc --noEmit",
"build": "tsc -p tsconfig.build.json"
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
4 changes: 3 additions & 1 deletion packages/email-sendgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "zemble-plugin-email-sendgrid",
"version": "0.0.13",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
Expand Down
7 changes: 5 additions & 2 deletions packages/graphql-yoga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"name": "@zemble/graphql",
"version": "0.0.15",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"graphql-codegen": "graphql-codegen",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
7 changes: 5 additions & 2 deletions packages/ignite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
"version": "0.0.4",
"description": "",
"private": true,
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
7 changes: 5 additions & 2 deletions packages/kv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"name": "zemble-plugin-kv",
"version": "0.0.13",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"graphql-codegen": "graphql-codegen",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
7 changes: 5 additions & 2 deletions packages/logger-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
"name": "zemble-plugin-logger-graphql",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"private": true,
"scripts": {
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"graphql-codegen": "graphql-codegen",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
4 changes: 3 additions & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"version": "0.0.4",
"description": "",
"main": "serve.js",
"module": "serve.mjs",
"types": "serve.d.ts",
"bin": {
"zemble-node": "cli.ts"
},
Expand All @@ -12,7 +14,7 @@
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"typecheck": "tsc --noEmit",
"build": "tsc"
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
7 changes: 5 additions & 2 deletions packages/routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
"name": "@zemble/routes",
"version": "0.0.4",
"description": "",
"main": "plugin.ts",
"main": "plugin.js",
"module": "plugin.mjs",
"types": "plugin.d.ts",
"scripts": {
"dev": "zemble-bun plugin.ts",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"keywords": [],
"author": "",
Expand Down
3 changes: 2 additions & 1 deletion packages/todo-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"graphql-codegen": "graphql-codegen",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsup *.ts --format cjs,esm --dts -d=."
},
"dependencies": {
"@react-native-async-storage/async-storage": "1.18.2",
Expand Down
Loading

0 comments on commit 125bb3d

Please sign in to comment.