Skip to content

Commit 5f5e8f0

Browse files
committed
FND appeasements
1 parent 4e0bbb3 commit 5f5e8f0

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

lib/index.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { buildProcessPipeline } from "./util.js";
22
import { readFile } from "node:fs/promises";
3-
import * as path from "node:path";
3+
import path from "node:path";
44

55
export const key = "static";
66
export const bucket = "static";
@@ -30,8 +30,8 @@ function buildProcessFile(copyConfig, options) {
3030
{ source, target, targetDir, assetManager }) {
3131
let sourcePath = path.join(source, filename);
3232
let targetPath = path.join(target, filename);
33-
let content;
3433

34+
let content;
3535
try {
3636
content = await readFile(sourcePath);
3737
} catch(err) {
@@ -58,11 +58,12 @@ function buildProcessFile(copyConfig, options) {
5858
};
5959
}
6060

61-
/** @import {
62-
* Config,
63-
* FaucetPlugin,
64-
* FaucetPluginOptions,
65-
* WriteFileOpts,
66-
* ProcessFile
67-
* } from "./types.ts"
68-
**/
61+
/**
62+
* @import {
63+
* Config,
64+
* FaucetPlugin,
65+
* FaucetPluginOptions,
66+
* WriteFileOpts,
67+
* ProcessFile
68+
* } from "./types.ts"
69+
*/

lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface FaucetPluginOptions {
1515

1616
export interface AssetManager {
1717
resolvePath: (path: string, opts?: ResolvePathOpts) => string
18-
writeFile: (targetPath: string, content: Buffer, options: WriteFileOpts) => Promise<unknown>
18+
writeFile: (targetPath: string, content: Buffer, options: WriteFileOpts) => Promise<unknown>
1919
}
2020

2121
export interface ResolvePathOpts {

lib/util.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { readdir, stat } from "node:fs/promises";
2-
import * as path from "node:path";
2+
import path from "node:path";
33

44
/**
55
* Creates a processor for a single configuration
@@ -109,11 +109,12 @@ async function tree(filepath, referenceDir = filepath) {
109109
return entries.flat();
110110
}
111111

112-
/** @import {
113-
* AssetManager,
114-
* FaucetPluginFunc,
115-
* Filter,
116-
* FileFinderOptions,
117-
* ProcessFile
118-
* } from "./types.ts"
119-
**/
112+
/**
113+
* @import {
114+
* AssetManager,
115+
* FaucetPluginFunc,
116+
* Filter,
117+
* FileFinderOptions,
118+
* ProcessFile
119+
* } from "./types.ts"
120+
*/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "faucet-pipeline-static",
33
"version": "2.1.0",
44
"description": "static files for faucet-pipeline",
5-
"main": "lib/index.js",
5+
"main": "./lib/index.js",
66
"type": "module",
77
"scripts": {
88
"test": "npm run lint && npm run typecheck && npm run test:cli",
99
"test:cli": "./test/run",
10-
"lint": "eslint --cache lib test && echo ✓",
10+
"lint": "eslint --cache ./lib ./test && echo ✓",
1111
"typecheck": "tsc"
1212
},
1313
"repository": {

tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@
88
"lib": ["dom", "es2023"],
99
"module": "nodenext"
1010
},
11-
"exclude": [
12-
"./test/**",
13-
]
11+
"exclude": ["./test/**"]
1412
}

0 commit comments

Comments
 (0)