Files
blockly/tsconfig.json
Beka Westberg 8f0a5ae6a8 chore: properly package .ts and .d.ts files (#6257)
* fix: package .ts sources

* chore: add generating type defs

* chore: copy generated type defs into dist dir

* chore: fix adding generated def files

* chore: remove unnecessary imports

* chore: make handcrafted files reference generated

* chore: replace AnyDuringMigration with any

* chore: use replace instead of regex-replace

* chore: use value in config instead of magic strings

* chore: remove blockly.d.ts

* chore: update jsdocs

* chore: remove old references to typings
2022-08-05 08:25:41 -07:00

28 lines
712 B
JSON

{
"include": [
"core/**/*", // N.B.: also pulls in closure/goog/goog.js if needed.
"closure/**/*", // Just for ouptut directory structure.
],
"exclude": [
"core/blockly.js"
],
"compilerOptions": {
// Tells TypeScript to read JS files, as
// normally they are ignored as source files
"allowJs": true,
// Generate d.ts files
"declaration": true,
"module": "ES2015",
"moduleResolution": "node",
"target": "ES2020",
"strict": true,
// This does not understand enums only used to define other enums, so we
// cannot leave it enabled.
// See: https://github.com/microsoft/TypeScript/issues/49974
// "importsNotUsedAsValues": "error"
}
}