1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-10 06:29:28 +00:00

attempt to fix typescript build

This commit is contained in:
Steven Hugg 2019-09-27 20:50:41 -05:00
parent 34d1885851
commit c3c91c0908
4 changed files with 6 additions and 5 deletions

View File

@ -3,6 +3,7 @@ TSC=./node_modules/typescript/bin/tsc
all: all:
cp nanoasm/src/assembler.ts src/worker/ cp nanoasm/src/assembler.ts src/worker/
$(TSC) -v
$(TSC) $(TSC)
cd jsnes && npm i cd jsnes && npm i

6
package-lock.json generated
View File

@ -2080,9 +2080,9 @@
"dev": true "dev": true
}, },
"typescript": { "typescript": {
"version": "3.6.2", "version": "3.6.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.2.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.3.tgz",
"integrity": "sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw==", "integrity": "sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw==",
"dev": true "dev": true
}, },
"typescript-formatter": { "typescript-formatter": {

View File

@ -27,7 +27,7 @@
"octokat": "^0.10.0", "octokat": "^0.10.0",
"pngjs": "^3.3.3", "pngjs": "^3.3.3",
"rgbquant": "^1.1.2", "rgbquant": "^1.1.2",
"typescript": "^3.6.2", "typescript": "^3.6.3",
"typescript-formatter": "^7.2.2" "typescript-formatter": "^7.2.2"
}, },
"main": "main.js", "main": "main.js",

View File

@ -50,7 +50,7 @@ export class DebugSymbols {
this.symbolmap = symbolmap; this.symbolmap = symbolmap;
this.addr2symbol = invertMap(symbolmap); this.addr2symbol = invertMap(symbolmap);
//// TODO: shouldn't be necc. //// TODO: shouldn't be necc.
if (!this.addr2symbol[0x0]) this.addr2symbol[0x0] = ' '; // needed for ... if (!this.addr2symbol[0x0]) this.addr2symbol[0x0] = '$00'; // needed for ...
this.addr2symbol[0x10000] = '__END__'; // ... dump memory to work this.addr2symbol[0x10000] = '__END__'; // ... dump memory to work
} }
} }