Skip to content

Commit

Permalink
Merge pull request #3 from Shougo/jsr
Browse files Browse the repository at this point in the history
Migrate to JSR
  • Loading branch information
Shougo authored Jul 28, 2024
2 parents 3deba5a + e033093 commit 4197152
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 8 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: jsr

env:
DENO_VERSION: 1.x

on:
push:
tags:
- "v*"

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Publish
run: |
deno run -A jsr:@david/publish-on-tag@0.1.3
23 changes: 23 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@shougo/ddu-kind-word",
"version": "0.0.0",
"exports": {
".": "./denops/@ddu-kinds/word.ts"
},
"publish": {
"include": [
"denops/@ddu-kinds/**/*.ts"
]
},
"imports": {
},
"lock": false,
"tasks": {
"check": "deno check denops/**/*.ts",
"lint": "deno lint denops",
"lint-fix": "deno lint --fix denops",
"fmt": "deno fmt denops",
"test": "deno test -A --doc --parallel --shuffle denops/**/*.ts",
"upgrade": "deno run -A jsr:@molt/cli **/*.ts --no-resolve --write"
}
}
19 changes: 11 additions & 8 deletions denops/@ddu-kinds/word.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import {
ActionFlags,
Actions,
type Actions,
BaseKind,
Context,
DduItem,
PreviewContext,
Previewer,
} from "https://deno.land/x/ddu_vim@v3.6.0/types.ts";
import { Denops, fn, vars } from "https://deno.land/x/ddu_vim@v3.6.0/deps.ts";
import { DdcItem } from "https://deno.land/x/ddc_vim@v4.1.0/types.ts";
type Context,
type DduItem,
type Denops,
type PreviewContext,
type Previewer,
} from "jsr:@shougo/ddu-vim@5.0.0-pre10/types";
import type { DdcItem } from "jsr:@shougo/ddc-vim@6.0.0-pre9/types";

import * as fn from "jsr:@denops/std@7.0.0/function";
import * as vars from "jsr:@denops/std@7.0.0/variable";

export type ActionData = {
text: string;
Expand Down

0 comments on commit 4197152

Please sign in to comment.