diff --git a/bun.lock b/bun.lock index 8a3226f3..0f292ce3 100644 --- a/bun.lock +++ b/bun.lock @@ -362,6 +362,17 @@ "hono": ">=4.0.0", }, }, + "packages/integration": { + "name": "@aura-stack/integration", + "version": "0.0.0", + "dependencies": { + "@aura-stack/auth": "workspace:*", + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + }, + }, "packages/jose": { "name": "@aura-stack/jose", "version": "0.4.0", @@ -438,6 +449,10 @@ "react-router": ">=7.0.0", }, }, + "packages/shared": { + "name": "shared", + "version": "0.0.0", + }, }, "overrides": { "dompurify": "^3.3.2", @@ -544,6 +559,8 @@ "@aura-stack/hono": ["@aura-stack/hono@workspace:packages/hono"], + "@aura-stack/integration": ["@aura-stack/integration@workspace:packages/integration"], + "@aura-stack/jose": ["@aura-stack/jose@workspace:packages/jose"], "@aura-stack/next": ["@aura-stack/next@workspace:packages/next"], @@ -3254,6 +3271,8 @@ "setprototypeof": ["setprototypeof@1.2.0", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="], + "shared": ["shared@workspace:packages/shared"], + "sharp": ["sharp@0.34.5", "", { "dependencies": { "@img/colour": "1.1.0", "detect-libc": "2.1.2", "semver": "7.7.4" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.34.5", "@img/sharp-darwin-x64": "0.34.5", "@img/sharp-libvips-darwin-arm64": "1.2.4", "@img/sharp-libvips-darwin-x64": "1.2.4", "@img/sharp-libvips-linux-arm": "1.2.4", "@img/sharp-libvips-linux-arm64": "1.2.4", "@img/sharp-libvips-linux-ppc64": "1.2.4", "@img/sharp-libvips-linux-riscv64": "1.2.4", "@img/sharp-libvips-linux-s390x": "1.2.4", "@img/sharp-libvips-linux-x64": "1.2.4", "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", "@img/sharp-libvips-linuxmusl-x64": "1.2.4", "@img/sharp-linux-arm": "0.34.5", "@img/sharp-linux-arm64": "0.34.5", "@img/sharp-linux-ppc64": "0.34.5", "@img/sharp-linux-riscv64": "0.34.5", "@img/sharp-linux-s390x": "0.34.5", "@img/sharp-linux-x64": "0.34.5", "@img/sharp-linuxmusl-arm64": "0.34.5", "@img/sharp-linuxmusl-x64": "0.34.5", "@img/sharp-wasm32": "0.34.5", "@img/sharp-win32-arm64": "0.34.5", "@img/sharp-win32-ia32": "0.34.5", "@img/sharp-win32-x64": "0.34.5" } }, "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg=="], "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], diff --git a/package.json b/package.json index 7db23d65..06a6893b 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,15 @@ "dev:core": "turbo run @aura-stack/auth#dev", "dev:docs": "turbo run docs#dev", "build": "turbo run build --filter=./configs/* --filter=./packages/* --filter=./apps/*", - "build:prod": "turbo run build --filter=./configs/* --filter=./packages/* --continue=dependencies-successful", + "build:prod": "turbo run build --filter=./configs/* --filter=./packages/* --filter=!./packages/integration --continue=dependencies-successful", "test": "turbo run test --parallel", "format": "turbo run format format:root --parallel", "format:root": "oxfmt \"!packages\" \"!apps\" \"!configs\"", "format:check": "oxfmt --check", "lint": "oxlint", "lint:fix": "oxlint --fix", - "type-check": "turbo run type-check --parallel" + "type-check": "turbo run type-check --parallel", + "create:integration": "node packages/shared/scripts/integration.js" }, "repository": { "type": "git", diff --git a/packages/integration/CHANGELOG.md b/packages/integration/CHANGELOG.md new file mode 100644 index 00000000..980bf2e3 --- /dev/null +++ b/packages/integration/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog - `@aura-stack/integration` + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +--- + +## [Unreleased] + +### Added + +### Changed diff --git a/packages/integration/README.md b/packages/integration/README.md new file mode 100644 index 00000000..eae41ea1 --- /dev/null +++ b/packages/integration/README.md @@ -0,0 +1,35 @@ +
+ Made with ❤️ by Aura Stack team +
diff --git a/packages/integration/deno.json b/packages/integration/deno.json new file mode 100644 index 00000000..ba80ec44 --- /dev/null +++ b/packages/integration/deno.json @@ -0,0 +1,19 @@ +{ + "name": "@aura-stack/integration", + "version": "0.0.0", + "license": "MIT", + "tasks": { + "dev": "deno run --watch src/index.ts" + }, + "imports": { + "@/": "./src/", + "./oauth": "./src/oauth/index.ts", + "./identity": "./src/_core/identity.ts", + "./crypto": "./src/_core/crypto.ts", + "./shared": "./src/_core/shared.ts" + }, + "publish": { + "include": ["src/**/*.ts", "src/**/*.tsx", "README.md", "CHANGELOG.md"] + }, + "exclude": ["dist", "node_modules"] +} diff --git a/packages/integration/package.json b/packages/integration/package.json new file mode 100644 index 00000000..24e7ecf2 --- /dev/null +++ b/packages/integration/package.json @@ -0,0 +1,79 @@ +{ + "name": "@aura-stack/integration", + "version": "0.0.0", + "private": true, + "type": "module", + "description": "Integration for Aura Stack authentication library", + "scripts": { + "dev": "tsdown --watch", + "build": "pnpm sync:modules && tsdown", + "lint": "oxlint", + "lint:fix": "oxlint --fix", + "test": "vitest --run", + "test:watch": "vitest", + "test:coverage": "vitest --run --coverage", + "format": "oxfmt", + "format:check": "oxfmt --check", + "type-check": "tsc --noEmit", + "clean": "rm -rf dist src/_core src/oauth", + "clean:cts": "if [ -d dist ]; then find dist -type f -name \"*.cts\" -delete; fi", + "prepublishOnly": "pnpm clean:cts && pnpm build && pnpm clean:cts", + "sync:modules": "node ../shared/scripts/modules.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/aura-stack-ts/auth" + }, + "sideEffects": false, + "files": [ + "dist" + ], + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.cjs" + }, + "./oauth": { + "types": "./dist/oauth/index.d.ts", + "import": "./dist/oauth/index.js", + "require": "./dist/oauth/index.cjs" + }, + "./oauth/*": { + "types": "./dist/oauth/*.d.ts", + "import": "./dist/oauth/*.js", + "require": "./dist/oauth/*.cjs" + }, + "./identity": { + "types": "./dist/_core/identity.d.ts", + "import": "./dist/_core/identity.js", + "require": "./dist/_core/identity.cjs" + }, + "./crypto": { + "types": "./dist/_core/crypto.d.ts", + "import": "./dist/_core/crypto.js", + "require": "./dist/_core/crypto.cjs" + }, + "./shared": { + "types": "./dist/_core/shared.d.ts", + "import": "./dist/_core/shared.js", + "require": "./dist/_core/shared.cjs" + } + }, + "keywords": [], + "author": "Aura Stack