Skip to content

Commit

Permalink
chore: support create-satori
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 14, 2024
1 parent 48bdc78 commit a299a43
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"eslint": "^8.57.0",
"shx": "^0.3.4",
"typescript": "^5.4.3",
"yakumo": "^1.0.0-beta.14",
"yakumo": "^1.0.0-beta.15",
"yakumo-esbuild": "^1.0.0-beta.5",
"yakumo-tsc": "^1.0.0-beta.3"
}
Expand Down
32 changes: 32 additions & 0 deletions packages/create/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "create-satori",
"description": "Setup a Satori application",
"version": "0.1.1",
"type": "module",
"bin": "lib/bin.js",
"files": [
"lib"
],
"author": "Shigma <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/satorijs/satori.git",
"directory": "packages/create"
},
"bugs": {
"url": "https://github.com/satorijs/satori/issues"
},
"keywords": [
"satori",
"application",
"create",
"scaffold",
"template",
"generator",
"boilerplate"
],
"dependencies": {
"create-cordis": "^0.1.4"
}
}
11 changes: 11 additions & 0 deletions packages/create/src/bin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { createRequire } from 'node:module'
import scaffold from 'create-cordis'

const require = createRequire(import.meta.url)
const { version } = require('../package.json')

scaffold({
name: 'satori',
version,
template: '@satorijs/boilerplate',
})
12 changes: 12 additions & 0 deletions packages/create/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"module": "esnext",
"moduleResolution": "bundler",
},
"include": [
"src",
],
}

0 comments on commit a299a43

Please sign in to comment.