Skip to content

Commit 341098f

Browse files
committed
Fixup: Code org
1 parent 0f7951c commit 341098f

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

index.js renamed to lib/index.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1+
let { FileFinder } = require("./util.js");
12
let { readFile, stat } = require("node:fs/promises");
23
let path = require("node:path");
3-
let { FileFinder } = require("./lib.js");
4-
/** @import {
5-
* Config,
6-
* AssetManager,
7-
* FaucetPlugin,
8-
* FaucetPluginOptions,
9-
* FaucetPluginFunc,
10-
* CompactorMap,
11-
* WriteFileOpts,
12-
* ProcessFile
13-
* } from "./types.ts"
14-
**/
154

165
module.exports = {
176
key: "static",
@@ -110,3 +99,15 @@ async function processFile(filename,
11099
}
111100
return assetManager.writeFile(targetPath, content, options);
112101
}
102+
103+
/** @import {
104+
* Config,
105+
* AssetManager,
106+
* FaucetPlugin,
107+
* FaucetPluginOptions,
108+
* FaucetPluginFunc,
109+
* CompactorMap,
110+
* WriteFileOpts,
111+
* ProcessFile
112+
* } from "./types.ts"
113+
**/
File renamed without changes.

lib.js renamed to lib/util.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
let { readdir, stat } = require("node:fs/promises");
22
let path = require("node:path");
3-
/** @import { FileFinderOptions } from "./types.ts" */
43

54
exports.FileFinder = class FileFinder {
65
/**
@@ -74,3 +73,5 @@ async function tree(filepath, referenceDir = filepath) {
7473
function isDotfile(filename) {
7574
return path.basename(filename).startsWith(".");
7675
}
76+
77+
/** @import { FileFinderOptions } from "./types.ts" */

package.json

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

0 commit comments

Comments
 (0)