Skip to content

Commit 29654c4

Browse files
committed
fix: update version to 1.11.17 in package.json and refactor license-check to use CURRENT_DIR
1 parent 89c0e79 commit 29654c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zen-browser/surfer",
3-
"version": "1.11.16",
3+
"version": "1.11.17",
44
"description": "Simplifying building firefox forks!",
55
"main": "index.js",
66
"bin": {

src/commands/license-check.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { readFile, writeFile } from 'node:fs/promises'
55
import { join } from 'node:path'
66

7-
import { SRC_DIR } from '../constants'
7+
import { CURRENT_DIR } from '../constants'
88
import { walkDirectory } from '../utils/fs'
99
import { Task, TaskList } from '../utils/task-list'
1010

@@ -62,7 +62,7 @@ export async function isValidLicense(path: string): Promise<boolean> {
6262
export function createTask(path: string, noFix: boolean): Task {
6363
return {
6464
skip: () => ignoredFiles.test(path),
65-
name: path.replace(SRC_DIR, ''),
65+
name: path.replace(CURRENT_DIR, ''),
6666
task: async () => {
6767
const contents = await readFile(path, { encoding: 'utf8' })
6868
const contentsSplitNewline = contents.split('\n')
@@ -104,7 +104,7 @@ interface Options {
104104
}
105105

106106
export const licenseCheck = async (options: Options): Promise<void> => {
107-
const files = await walkDirectory(SRC_DIR)
107+
const files = await walkDirectory(CURRENT_DIR)
108108

109109
await new TaskList(files.map((file) => createTask(file, !options.fix)))
110110
.onError('inline')

0 commit comments

Comments
 (0)