Skip to content

Commit

Permalink
Migrate to JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jul 27, 2024
1 parent 32fe692 commit e1af206
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 20 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/[email protected]
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/[email protected]/types.ts";
import {
basename,
Denops,
dirname,
ensure,
fn,
is,
vars,
} from "https://deno.land/x/[email protected]/deps.ts";
type Clipboard,
type Context,
type DduItem,
type DduOptions,
type Denops,
type PreviewContext,
type Previewer,
type SourceOptions,
} from "jsr:@shougo/[email protected]/types";
import {
printError,
treePath2Filename,
} from "https://deno.land/x/[email protected]/utils.ts";
} from "jsr:@shougo/[email protected]/utils";

import * as fn from "jsr:@denops/[email protected]/function";
import * as vars from "jsr:@denops/[email protected]/variable";
import { basename, dirname } from "jsr:@std/[email protected]";

import { isAbsolute, join, normalize, relative } from "jsr:@std/[email protected]";
import { copy, ensureDir, ensureFile, move } from "jsr:@std/[email protected]";
import { ByteSliceStream } from "jsr:@std/[email protected]/byte-slice-stream";
import { toArrayBuffer } from "jsr:@std/[email protected]/to-array-buffer";
import { TextLineStream } from "jsr:@std/[email protected]";
import { ensure, is } from "jsr:@core/[email protected]";

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

0 comments on commit e1af206

Please sign in to comment.