diff --git a/.gitignore b/.gitignore index 8701354..f8285e5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# build artifacts +dist + # macOS specific files .DS_Store diff --git a/LICENSE b/LICENSE index a4274eb..8272839 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -MIT License Copyright (c) 2024 [Bombshell contributors](https://bomb.sh/team) +MIT License Copyright (c) 2025-Present [Bombshell contributors](https://bomb.sh/team) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated diff --git a/README.md b/README.md index 078265f..fe37b1b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# `@bomb.sh/stub` +# `@bomb.sh/$name` ## Install -You can install `@bomb.sh/stub` manually by running this command: +You can install `@bomb.sh/$name` manually by running this command: ```sh -npm install @bomb.sh/stub +npm install @bomb.sh/$name ``` Looking for help? Start with our [Getting Started][docs] guide. @@ -18,5 +18,5 @@ Visit our [official documentation][docs]. Having trouble? Get help in the official [Bombshell Discord][discord]. -[docs]: https://bomb.sh/docs +[docs]: https://bomb.sh/docs/$name [discord]: https://bomb.sh/chat diff --git a/package.json b/package.json index 7fda2f5..44062e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { - "name": "@bomb.sh/template", - "private": true, + "name": "@bomb.sh/$name", "version": "0.0.0", "type": "module", "license": "MIT", @@ -9,14 +8,44 @@ "email": "oss@bomb.sh", "url": "https://bomb.sh" }, - "repository": { - "type": "git", - "url": "git+https://github.com/bombshell-dev/template.git" + "homepage": "https://bomb.sh/docs/$name", + "keywords": [ + "cli", + "bombshell" + ], + "exports": { + ".": { + "import": "./dist/index.js" + }, + "./package.json": "./package.json" }, "scripts": { - "start": "tsx index.ts" + "dev": "nucleus dev", + "build": "nucleus build", + "format": "nucleus format", + "lint": "nucleus lint", + "test": "nucleus test" }, "devDependencies": { - "tsx": "^4.19.2" + "@bomb.sh/nucleus": "latest" + }, + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/bombshell-dev/$name.git" + }, + "devEngines": { + "runtime": { + "name": "node", + "version": "22.14.0", + "onFail": "error" + }, + "packageManager": { + "name": "pnpm", + "version": "10.7.0", + "onFail": "error" + } } } diff --git a/src/index.ts b/src/index.ts index d43f6b2..0bc3061 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,3 @@ -// Hello world! +export default function () { + console.log("Hello world!"); +} diff --git a/tsconfig.json b/tsconfig.json index 684207f..d61c91a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,29 +1,3 @@ { - "compilerOptions": { - /* Base Options: */ - "esModuleInterop": true, - "skipLibCheck": true, - "target": "es2022", - "allowJs": true, - "resolveJsonModule": true, - "moduleDetection": "force", - "isolatedModules": true, - "verbatimModuleSyntax": true, - "allowImportingTsExtensions": true, - - /* Strictness */ - "strict": true, - "noUncheckedIndexedAccess": true, - "noImplicitOverride": true, - - /* Library mode */ - "module": "preserve", - "noEmit": true, - "declaration": true, - "lib": ["es2022"], - - /* Monorepo? */ - "composite": true, - "declarationMap": true, - } + "extends": "@bomb.sh/nucleus/tsconfig.json" }