Skip to content

Commit

Permalink
feat: add apply and preset aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Sep 4, 2023
1 parent 49c5237 commit 3893900
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/apply/build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: ['./src/cli'],
clean: true,
})
28 changes: 28 additions & 0 deletions packages/apply/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "apply",
"version": "0.11.0",
"description": "Elegant, ecosystem-agnostic preset mechanism",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/preset/preset.git",
"directory": "packages/apply"
},
"author": "Enzo Innocenzi",
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"init"
],
"bin": {
"preset": "dist/cli.mjs"
},
"scripts": {
"build": "unbuild"
},
"dependencies": {
"@preset/cli": "workspace:*"
}
}
2 changes: 2 additions & 0 deletions packages/apply/src/cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import '@preset/cli'
6 changes: 6 additions & 0 deletions packages/preset/build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: ['./src/cli'],
clean: true,
})
28 changes: 28 additions & 0 deletions packages/preset/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "preset",
"version": "0.11.0",
"description": "Elegant, ecosystem-agnostic preset mechanism",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/preset/preset.git",
"directory": "packages/preset"
},
"author": "Enzo Innocenzi",
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"init"
],
"bin": {
"preset": "dist/cli.mjs"
},
"scripts": {
"build": "unbuild"
},
"dependencies": {
"@preset/cli": "workspace:*"
}
}
2 changes: 2 additions & 0 deletions packages/preset/src/cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import '@preset/cli'
8 changes: 7 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3893900

Please sign in to comment.