File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @zen-browser/surfer" ,
3
- "version" : " 1.11.16 " ,
3
+ "version" : " 1.11.17 " ,
4
4
"description" : " Simplifying building firefox forks!" ,
5
5
"main" : " index.js" ,
6
6
"bin" : {
Original file line number Diff line number Diff line change 4
4
import { readFile , writeFile } from 'node:fs/promises'
5
5
import { join } from 'node:path'
6
6
7
- import { SRC_DIR } from '../constants'
7
+ import { CURRENT_DIR } from '../constants'
8
8
import { walkDirectory } from '../utils/fs'
9
9
import { Task , TaskList } from '../utils/task-list'
10
10
@@ -62,7 +62,7 @@ export async function isValidLicense(path: string): Promise<boolean> {
62
62
export function createTask ( path : string , noFix : boolean ) : Task {
63
63
return {
64
64
skip : ( ) => ignoredFiles . test ( path ) ,
65
- name : path . replace ( SRC_DIR , '' ) ,
65
+ name : path . replace ( CURRENT_DIR , '' ) ,
66
66
task : async ( ) => {
67
67
const contents = await readFile ( path , { encoding : 'utf8' } )
68
68
const contentsSplitNewline = contents . split ( '\n' )
@@ -104,7 +104,7 @@ interface Options {
104
104
}
105
105
106
106
export const licenseCheck = async ( options : Options ) : Promise < void > => {
107
- const files = await walkDirectory ( SRC_DIR )
107
+ const files = await walkDirectory ( CURRENT_DIR )
108
108
109
109
await new TaskList ( files . map ( ( file ) => createTask ( file , ! options . fix ) ) )
110
110
. onError ( 'inline' )
You can’t perform that action at this time.
0 commit comments