Skip to content

Commit 095a22a

Browse files
committed
Fix typo in build script and update entry point
Corrects the 'develope' typo to 'develop' in build.ts and deno.json. Updates the build entry point from './src/index.ts' to './src/worker.ts' and adjusts minify logic for development mode.
1 parent b0b89f9 commit 095a22a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

config/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ import { parseArgs } from 'https://deno.land/[email protected]/cli/parse_args.ts';
55

66
const args = parseArgs<{
77
watch: boolean | undefined,
8-
develope: boolean | undefined,
8+
develop: boolean | undefined,
99
logLevel: esbuild.LogLevel
1010
}>(Deno.args);
1111

1212
const filesConfig : esbuild.BuildOptions = {
1313
allowOverwrite: true,
1414
logLevel: args.logLevel ?? 'info',
15-
legalComments: args.develope ? 'inline' : 'none',
15+
legalComments: args.develop ? 'inline' : 'none',
1616
color: true,
17-
minify: !args.develope ?? true,
17+
minify: args.develop === true ? false : true,
1818
bundle: true,
1919
format: 'esm',
2020
target: 'es2022',
21-
sourcemap: args.develope ?? false,
22-
sourcesContent: args.develope ?? false,
21+
sourcemap: args.develop ?? false,
22+
sourcesContent: args.develop ?? false,
2323
outfile: 'worker/worker.js',
2424
entryPoints: [
25-
'./src/index.ts'
25+
'./src/worker.ts'
2626
],
2727
}
2828

deno.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
"tasks": {
33
"build": "deno run -A ./config/build.ts",
44
"build:watch": "deno run -A ./config/build.ts --watch",
5-
"build:dev": "deno run -A ./config/build.ts --develope",
6-
"build:dev:watch": "deno run -A ./config/build.ts --develope --watch",
5+
"build:dev": "deno run -A ./config/build.ts --develop",
6+
"build:dev:watch": "deno run -A ./config/build.ts --develop --watch",
77
"lint": "deno lint",
88
"test": "deno test -A --check --reload --doc --allow-none --junit-path=\"./report.xml\""
99
},
1010
"exclude": [
11-
"./dist/",
1211
"./worker/"
1312
],
1413
"test": {

0 commit comments

Comments
 (0)