Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to JSR #19

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-file",
"version": "0.0.0",
"exports": {
".": "./denops/@ddu-kinds/file.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"
}
}
37 changes: 17 additions & 20 deletions denops/@ddu-kinds/file.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
import {
ActionFlags,
ActionHistory,
Actions,
type ActionHistory,
type Actions,
BaseKind,
Clipboard,
Context,
DduItem,
DduOptions,
PreviewContext,
Previewer,
SourceOptions,
} from "https://deno.land/x/ddu_vim@v4.1.0/types.ts";
import {
basename,
Denops,
dirname,
ensure,
fn,
is,
vars,
} from "https://deno.land/x/ddu_vim@v4.1.0/deps.ts";
type Clipboard,
type Context,
type DduItem,
type DduOptions,
type Denops,
type PreviewContext,
type Previewer,
type SourceOptions,
} from "jsr:@shougo/ddu-vim@5.0.0-pre10/types";
import {
printError,
treePath2Filename,
} from "https://deno.land/x/ddu_vim@v4.1.0/utils.ts";
} from "jsr:@shougo/ddu-vim@5.0.0-pre10/utils";

import * as fn from "jsr:@denops/std@7.0.0/function";
import * as vars from "jsr:@denops/std@7.0.0/variable";
import { basename, dirname } from "jsr:@std/path@1.0.0";

import { isAbsolute, join, normalize, relative } from "jsr:@std/path@0.225.1";
import { copy, ensureDir, ensureFile, move } from "jsr:@std/fs@0.229.1";
import { ByteSliceStream } from "jsr:@std/streams@0.224.0/byte-slice-stream";
import { toArrayBuffer } from "jsr:@std/streams@0.224.0/to-array-buffer";
import { TextLineStream } from "jsr:@std/streams@0.224.0";
import { ensure, is } from "jsr:@core/unknownutil@3.18.1";

export type ActionData = {
bufNr?: number;
Expand Down