Skip to content

Commit d8ef736

Browse files
authored
Merge pull request #12 from atom-community/docs/fix-build
docs: fix build
2 parents 8f47828 + 73a1150 commit d8ef736

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
vendor/bundle
55
node_modules
66
package-lock.json
7+
api.js
8+
components/*.js
9+
tsconfig.tsbuildinfo
710

811
## Rocket ignore files (need to be the full relative path to the folders)
912
_site-dev

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
},
1313
"scripts": {
1414
"prestart": "pnpm run typedoc",
15-
"prebuild": "pnpm run typedoc",
15+
"prebuild": "pnpm run tsc && pnpm run typedoc",
1616
"postinstall": "patch-package",
1717
"start": "rocket start",
1818
"build": "rocket build",
19+
"tsc": "tsc",
1920
"typedoc": "typedoc --json docs/_data/api/api.json --entryPoints api.ts",
2021
"test": "echo \"Error: no test specified\" && exit 1"
2122
},

tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"noImplicitThis": true,
1010
"noFallthroughCasesInSwitch": true,
1111
"declaration": false,
12-
"noEmit": true,
1312
"emitDecoratorMetadata": false,
1413
"experimentalDecorators": true,
1514
"incremental": true,
@@ -21,9 +20,9 @@
2120
"jsxFactory": "etch.dom",
2221
"lib": ["ES2018", "dom"],
2322
"target": "ES2018",
24-
"allowJs": true,
23+
"allowJs": false,
2524
"esModuleInterop": true,
26-
"module": "commonjs",
25+
"module": "ESNext",
2726
"moduleResolution": "node",
2827
"importHelpers": false
2928
}

0 commit comments

Comments
 (0)