mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
* 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
28 lines
712 B
JSON
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"
|
|
}
|
|
}
|