Skip to content

Commit 7504b3c

Browse files
committed
Update resources
1 parent b9249be commit 7504b3c

6 files changed

Lines changed: 33 additions & 27 deletions

File tree

.npm-codeberg.build.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import { invokeDenoNodeJSTransformer } from "DNT";
2-
import { parse as parseJSONC } from "STD_JSONC";
3-
const jsrManifest = parseJSONC(await Deno.readTextFile(new URL(import.meta.resolve("./jsr.jsonc"))));
4-
await invokeDenoNodeJSTransformer({
1+
import {
2+
readManifest,
3+
transform
4+
} from "DNT";
5+
const manifest = await readManifest("jsr.jsonc");
6+
await transform({
57
copyEntries: [
68
"LICENSE.md",
79
"README.md"
810
],
911
//@ts-ignore Lazy type.
10-
entrypointsScript: jsrManifest.exports,
12+
entrypointsScript: manifest.exports,
1113
generateDeclarationMap: true,
1214
mappings: {
1315
"https://raw.githubusercontent.com/hugoalh/runtime-info-es/v0.4.0/mod.ts": {
@@ -17,9 +19,9 @@ await invokeDenoNodeJSTransformer({
1719
},
1820
metadata: {
1921
//@ts-ignore Lazy type.
20-
name: jsrManifest.name,
22+
name: manifest.name,
2123
//@ts-ignore Lazy type.
22-
version: jsrManifest.version,
24+
version: manifest.version,
2325
description: "A module to handle end of line (EOL).",
2426
keywords: [
2527
"end-of-line",

.npm-github.build.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import { invokeDenoNodeJSTransformer } from "DNT";
2-
import { parse as parseJSONC } from "STD_JSONC";
3-
const jsrManifest = parseJSONC(await Deno.readTextFile(new URL(import.meta.resolve("./jsr.jsonc"))));
4-
await invokeDenoNodeJSTransformer({
1+
import {
2+
readManifest,
3+
transform
4+
} from "DNT";
5+
const manifest = await readManifest("jsr.jsonc");
6+
await transform({
57
copyEntries: [
68
"LICENSE.md",
79
"README.md"
810
],
911
//@ts-ignore Lazy type.
10-
entrypointsScript: jsrManifest.exports,
12+
entrypointsScript: manifest.exports,
1113
generateDeclarationMap: true,
1214
mappings: {
1315
"https://raw.githubusercontent.com/hugoalh/runtime-info-es/v0.4.0/mod.ts": {
@@ -17,9 +19,9 @@ await invokeDenoNodeJSTransformer({
1719
},
1820
metadata: {
1921
//@ts-ignore Lazy type.
20-
name: jsrManifest.name,
22+
name: manifest.name,
2123
//@ts-ignore Lazy type.
22-
version: jsrManifest.version,
24+
version: manifest.version,
2325
description: "A module to handle end of line (EOL).",
2426
keywords: [
2527
"end-of-line",

.npm-npm.build.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import { invokeDenoNodeJSTransformer } from "DNT";
2-
import { parse as parseJSONC } from "STD_JSONC";
3-
const jsrManifest = parseJSONC(await Deno.readTextFile(new URL(import.meta.resolve("./jsr.jsonc"))));
4-
await invokeDenoNodeJSTransformer({
1+
import {
2+
readManifest,
3+
transform
4+
} from "DNT";
5+
const manifest = await readManifest("jsr.jsonc");
6+
await transform({
57
copyEntries: [
68
"LICENSE.md",
79
"README.md"
810
],
911
//@ts-ignore Lazy type.
10-
entrypointsScript: jsrManifest.exports,
12+
entrypointsScript: manifest.exports,
1113
generateDeclarationMap: true,
1214
mappings: {
1315
"https://raw.githubusercontent.com/hugoalh/runtime-info-es/v0.4.0/mod.ts": {
@@ -17,9 +19,9 @@ await invokeDenoNodeJSTransformer({
1719
},
1820
metadata: {
1921
//@ts-ignore Lazy type.
20-
name: jsrManifest.name,
22+
name: manifest.name,
2123
//@ts-ignore Lazy type.
22-
version: jsrManifest.version,
24+
version: manifest.version,
2325
description: "A module to handle end of line (EOL).",
2426
keywords: [
2527
"end-of-line",

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ This Contributing Guide is depend on the "[HUGOALH Universal Contributing Guide]
44

55
## Revises
66

7-
*This project does not have any revise.*
7+
This project does not have any revise.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ This does not request any runtime permission.
8181

8282
> [!NOTE]
8383
> - For the full or prettier documentation, can visit via:
84-
> - [Deno CLI `deno doc`](https://docs.deno.com/runtime/reference/cli/doc/)
84+
> - [Deno CLI `deno doc`](https://docs.deno.com/runtime/reference/cli/doc)
8585
> - [JSR](https://jsr.io/@hugoalh/eol)
8686
8787
## ✍️ Examples

deno.jsonc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@
1515
"proseWrap": "preserve",
1616
"quoteProps": "asNeeded",
1717
"semiColons": true,
18-
"singleBodyPosition": "nextLine",
18+
"singleBodyPosition": "sameLine",
1919
"singleQuote": false,
2020
"sortNamedExports": "caseInsensitive",
2121
"sortNamedImports": "caseInsensitive",
2222
"spaceAround": false,
2323
"spaceSurroundingProperties": true,
2424
"trailingCommas": "never",
2525
"typeLiteral.separatorKind": "semiColon",
26-
"useBraces": "always",
26+
"useBraces": "maintain",
2727
"useEditorConfig": true,
2828
"useTabs": true,
2929
"vueComponentCase": "ignore"
3030
},
3131
"imports": { // IMPORTANT: Only for development dependencies!
32-
"DNT": "jsr:@hugoalh/deno-nodejs-transformer@^0.8.0",
32+
"DNT": "jsr:@hugoalh/deno-nodejs-transformer@^0.9.1",
3333
"NPP": "https://raw.githubusercontent.com/hugoalh/npm-publish-patcher/85ec5b7b553dedb3d6eeb3666b8a9fe40055963f/deno/cli.ts",
3434
"STD_JSONC": "jsr:@std/jsonc@^1.0.2"
3535
},
3636
"lint": {
3737
"plugins": [
38-
"jsr:@hugoalh/deno-lint-rules@^0.18.2/presets/library"
38+
"jsr:@hugoalh/deno-lint-rules@^0.19.0/presets/library"
3939
],
4040
"rules": {
4141
"tags": [

0 commit comments

Comments
 (0)