Skip to content
Permalink
Browse files

chore: upgrade typescript to 3.2.2 (#649)

  • Loading branch information
malept authored and MarshallOfSound committed Jan 20, 2019
1 parent a02891e commit 7abaf7f749800c57fc0c6451121a0698246d5f50
Showing with 13 additions and 12 deletions.
  1. +1 −1 package.json
  2. +4 −8 packages/api/core/src/util/publish-state.ts
  3. +2 −2 packages/plugin/webpack/src/WebpackPlugin.ts
  4. +6 −1 yarn.lock
@@ -150,7 +150,7 @@
"tslint": "5.12.0",
"tslint-config-airbnb": "^5.11.0",
"typedoc": "0.13.0",
"typescript": "3.1.6"
"typescript": "3.2.2"
},
"optionalDependencies": {
"electron-installer-debian": "^1.1.0",
@@ -37,16 +37,16 @@ export default class PublishState {
const id = crypto.createHash('SHA256').update(JSON.stringify(artifacts)).digest('hex');
for (const artifact of artifacts) {
artifact.artifacts = artifact.artifacts.map(artifactPath => path.relative(rootDir, artifactPath));
const state = new PublishState(path.resolve(directory, id, 'null'), false);
state.setState(artifact);
await state.saveToDisk();
const publishState = new PublishState(path.resolve(directory, id, 'null'), false);
publishState.state = artifact;
await publishState.saveToDisk();
}
}

private dir: string;
private path: string;
private hasHash: boolean;
private state: ForgeMakeResult = {} as any;
public state: ForgeMakeResult = {} as ForgeMakeResult;

constructor(filePath: string, hasHash = true) {
this.dir = path.dirname(filePath);
@@ -59,10 +59,6 @@ export default class PublishState {
return crypto.createHash('SHA256').update(content).digest('hex');
}

setState(state: ForgeMakeResult) {
this.state = state;
}

async load() {
this.state = await fs.readJson(this.path);
}
@@ -71,8 +71,8 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
this.baseDir = path.resolve(dir, '.webpack');

d('hooking process events');
process.on('exit', this.exitHandler.bind(this, { cleanup: true }));
process.on('SIGINT', this.exitHandler.bind(this, { exit: true }));
process.on('exit', code => this.exitHandler({ cleanup: true }));
process.on('SIGINT' as NodeJS.Signals, signal => this.exitHandler({ exit: true }));
}

private loggedOutputUrl = false;
@@ -9096,11 +9096,16 @@ typedoc@0.13.0:
typedoc-default-themes "^0.5.0"
typescript "3.1.x"

typescript@3.1.6, typescript@3.1.x:
typescript@3.1.x:
version "3.1.6"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.6.tgz#b6543a83cfc8c2befb3f4c8fba6896f5b0c9be68"
integrity sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==

typescript@3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.2.tgz#fe8101c46aa123f8353523ebdcf5730c2ae493e5"
integrity sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg==

uglify-js@3.4.x, uglify-js@^3.1.4:
version "3.4.9"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.9.tgz#af02f180c1207d76432e473ed24a28f4a782bae3"

0 comments on commit 7abaf7f

Please sign in to comment.
You can’t perform that action at this time.