Skip to content

Commit

Permalink
chore: publish via jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff committed Mar 18, 2024
1 parent c8f5562 commit 2c4f1fc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 27 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -7,4 +7,6 @@ node_modules/
pnpm-lock.yaml
package-lock.json
yarn.lock
bun.lockb
deno.lock
dist
14 changes: 14 additions & 0 deletions deno.json
@@ -0,0 +1,14 @@
{
"name": "@ydcjeff/unocss-preset-one",
"version": "0.1.2",
"exports": "./src/mod.ts",
"publish": {
"exclude": ["**/*.test.*", "*.ts"]
},
"fmt": {
"singleQuote": true,
"useTabs": true,
"proseWrap": "always"
},
"lock": false
}
32 changes: 5 additions & 27 deletions package.json
@@ -1,26 +1,5 @@
{
"name": "unocss-preset-one",
"version": "0.1.4",
"type": "module",
"author": "Jeff Yang",
"license": "MIT",
"repository": {
"url": "https://github.com/ydcjeff/unocss-preset-one"
},
"keywords": [
"unocss",
"preset",
"unocss-preset-one"
],
"files": [
"dist/src"
],
"exports": {
".": {
"types": "./dist/src/mod.d.ts",
"import": "./dist/src/mod.js"
}
},
"scripts": {
"test": "vitest",
"fmt": "prettier --ignore-path .gitignore -w .",
Expand All @@ -29,15 +8,14 @@
"postinstall": "git config core.hooksPath .githooks"
},
"dependencies": {
"@unocss/core": "0.58.5"
"@unocss/core": "0.58.6"
},
"devDependencies": {
"@types/node": "20.11.16",
"@unocss/preset-uno": "0.58.5",
"@types/node": "20.11.28",
"@unocss/preset-uno": "0.58.6",
"prettier": "3.2.5",
"typescript": "5.3.3",
"vite": "5.0.12",
"vitest": "1.2.2"
"typescript": "5.4.2",
"vitest": "1.4.0"
},
"engines": {
"node": ">=20"
Expand Down
2 changes: 2 additions & 0 deletions src/mod.ts
@@ -1,5 +1,6 @@
import { Preset, Rule } from '@unocss/core';

/** Options for `preset_one` Preset. */
export interface PresetOneOptions {
/**
* Prefix for the utilities of this preset.
Expand Down Expand Up @@ -33,6 +34,7 @@ type Direction = keyof typeof DIRECTION_MAP;

export { preset_one as presetOne };

/** `1` to `1rem` UnoCSS preset. */
export function preset_one(opts: PresetOneOptions = {}): Preset {
const { prefix = 'one-' } = opts;

Expand Down

0 comments on commit 2c4f1fc

Please sign in to comment.