-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.mjs
35 lines (31 loc) · 993 Bytes
/
build.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// Build script for extension
import * as esbuild from 'esbuild'
import {taskExtrasPlugin} from './plugins/extras.js'
await esbuild.build({
entryPoints: ['./tasks/ps-rule-assertV2/powershell.ts'],
bundle: true,
outfile: 'out/dist/ps-rule-assert/ps-rule-assertV2/powershell.js',
platform: 'node',
format: 'cjs',
minify: true,
target: 'node10',
external: ['shelljs'],
plugins: [taskExtrasPlugin],
sourceRoot: './tasks/ps-rule-assertV2',
outbase: 'out/dist/ps-rule-assert/ps-rule-assertV2',
})
await esbuild.build({
entryPoints: ['./tasks/ps-rule-installV2/powershell.ts'],
bundle: true,
outfile: 'out/dist/ps-rule-install/ps-rule-installV2/powershell.js',
platform: 'node',
format: 'cjs',
minify: true,
target: 'node10',
external: ['shelljs'],
plugins: [taskExtrasPlugin],
sourceRoot: './tasks/ps-rule-installV2',
outbase: 'out/dist/ps-rule-install/ps-rule-installV2',
})