File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
import * as fs from 'fs'
7
7
import { JSONSchema4 } from 'json-schema'
8
8
import { compile } from 'json-schema-to-typescript'
9
- import * as packageJson from '../../package.json'
9
+ import packageJson from '../../package.json'
10
10
import * as nlsJson from '../../package.nls.json'
11
11
12
12
const config = [
Original file line number Diff line number Diff line change 6
6
import webfont from 'webfont'
7
7
import * as path from 'path'
8
8
import * as fs from 'fs-extra'
9
- import * as packageJson from '../../package.json'
9
+ import packageJson from '../../package.json'
10
10
11
11
const fontId = 'aws-toolkit-icons'
12
12
const projectDir = process . cwd ( )
@@ -164,7 +164,7 @@ ${result.template}
164
164
165
165
const stylesheetPath = path . join ( stylesheetsDir , 'icons.css' )
166
166
const cloud9Dest = path . join ( iconsDir , 'cloud9' , 'generated' )
167
- const isValidIcon = ( i : typeof icons [ number ] ) : i is Required < typeof i > => i . data !== undefined
167
+ const isValidIcon = ( i : ( typeof icons ) [ number ] ) : i is Required < typeof i > => i . data !== undefined
168
168
169
169
await fs . mkdirp ( fontsDir )
170
170
await fs . writeFile ( dest , result . woff )
Original file line number Diff line number Diff line change 16
16
// 3. restore the original package.json
17
17
//
18
18
19
- import type * as manifest from '../../package.json'
19
+ import type PackageJson from '../../package.json'
20
20
import * as child_process from 'child_process'
21
21
import * as fs from 'fs-extra'
22
22
@@ -116,7 +116,7 @@ function main() {
116
116
fs . copyFileSync ( packageJsonFile , `${ packageJsonFile } .bk` )
117
117
fs . copyFileSync ( webpackConfigJsFile , `${ webpackConfigJsFile } .bk` )
118
118
119
- const packageJson : typeof manifest = JSON . parse ( fs . readFileSync ( packageJsonFile , { encoding : 'utf-8' } ) )
119
+ const packageJson : typeof PackageJson = JSON . parse ( fs . readFileSync ( packageJsonFile , { encoding : 'utf-8' } ) )
120
120
const versionSuffix = getVersionSuffix ( args . feature )
121
121
const version = packageJson . version
122
122
// Setting the version to an arbitrarily high number stops VSC from auto-updating the beta extension
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import * as child_process from 'child_process'
7
- import * as manifest from '../../package.json'
7
+ import packageJson from '../../package.json'
8
8
import { downloadAndUnzipVSCode , resolveCliArgsFromVSCodeExecutablePath } from '@vscode/test-electron'
9
9
import { join , resolve } from 'path'
10
10
import { runTests } from '@vscode/test-electron'
@@ -108,7 +108,7 @@ export async function getCliArgsToDisableExtensions(
108
108
}
109
109
110
110
export function getMinVsCodeVersion ( ) : string {
111
- const vsCodeVersion = manifest . engines . vscode
111
+ const vsCodeVersion = packageJson . engines . vscode
112
112
113
113
// We assume that we specify a minium, so it matches ^<number>, so remove ^'s
114
114
const sanitizedVersion = vsCodeVersion . replace ( '^' , '' )
You can’t perform that action at this time.
0 commit comments