Set up from 2017 doesn't work that well in modern development, see, e.g., Choosing compiler options.
Alfa:
[x] Change TS module from commonjs to node16. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.
[x] Add verbatimModuleSyntax to TS config.
[x] Change TS target to es2022. Features are supported by all browsers (except IE) since several versions ago.
[x] Generate files in dist rather than src. Seems to be better practice now 🤔
[x] Switch JS generation from CJS to ESM. ESM is part of the language specification, so should be used instead.
[x] Clean up jsxImportSource.
[x] Clean up import {h}, import … from "…/native" and others using dist. Clean up package.json exporting dist entry points.
[x] setup correct exports in alfa-web (native)
[ ] ~Consider using correct imports from self-module rather than ../dist in tests.~
[ ] ~Clean up knip config ignoring a file in alfa-cascade, likely due to a dist setup?~
[x] Update knip?
[x] Update chalk
Alfa-integrations:
[x] Change TS module from commonjs to node16. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.
[x] Add verbatimModuleSyntax to TS config.
[x] Change TS target to es2022. Features are supported by all browsers (except IE) since several versions ago.
[x] Generate files in dist rather than src. Seems to be better practice now 🤔
[x] Switch JS generation from CJS to ESM. ESM is part of the language specification, so should be used instead.
[x] Clean up jsxImportSource.
[x] Clean up import {h}, import … from "…/native" and others using dist. Clean up package.json exporting dist entry points.
[ ] ~Consider using correct imports from self-module rather than ../dist in tests.~
[x] Update knip? => we need to have alfa-cli generates its files in another directory, which actually just means moving them to src and generate in bin where they already are.
[x] Re-enable TS config validation in validate-structure.
Alfa-companion:
[x] Change TS module from commonjs to node16. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.
[x] Add verbatimModuleSyntax to TS config.
[x] Change TS target to es2022. Features are supported by all browsers (except IE) since several versions ago.
[x] Generate files in dist rather than src. Seems to be better practice now 🤔
[x] Switch JS generation from CJS to ESM. ESM is part of the language specification, so should be used instead.
[x] Clean up jsxImportSource.
[x] Clean up import {h}, import … from "…/native" and others using dist. Clean up package.json exporting dist entry points.
[ ] ~Consider using correct imports from self-module rather than ../dist in tests.~
[x] Update knip?
Alfa-examples:
[ ] Change TS module from commonjs to node16. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.
[ ] Add verbatimModuleSyntax to TS config.
[ ] Change TS target to es2022. Features are supported by all browsers (except IE) since several versions ago.
[ ] Switch JS generation from CJS to ESM. ESM is part of the language specification, so should be used instead.
[ ] Clean up jsxImportSource.
[ ] Clean up import {h}, import … from "…/native" and others using dist. Clean up package.json exporting dist entry points.
[ ] ~Consider using correct imports from self-module rather than ../dist in tests.~
[x] Update knip?
Alfa-act-r:
[x] Change TS module from commonjs to node16. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.
[x] Add verbatimModuleSyntax to TS config.
[x] Change TS target to es2022. Features are supported by all browsers (except IE) since several versions ago.
[x] Switch JS generation from CJS to ESM. ESM is part of the language specification, so should be used instead.
[x] Clean up jsxImportSource.
[x] Clean up import {h}, import … from "…/native" and others using dist. Clean up package.json exporting dist entry points.
Set up from 2017 doesn't work that well in modern development, see, e.g., Choosing compiler options. Alfa:
module
fromcommonjs
tonode16
. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.verbatimModuleSyntax
to TS config.target
toes2022
. Features are supported by all browsers (except IE) since several versions ago.dist
rather thansrc
. Seems to be better practice now 🤔jsxImportSource
.import {h}
,import … from "…/native"
and others usingdist
. Clean uppackage.json
exportingdist
entry points.exports
inalfa-web
(native
)../dist
in tests.~alfa-cascade
, likely due to adist
setup?~Alfa-integrations:
module
fromcommonjs
tonode16
. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.verbatimModuleSyntax
to TS config.target
toes2022
. Features are supported by all browsers (except IE) since several versions ago.dist
rather thansrc
. Seems to be better practice now 🤔jsxImportSource
.import {h}
,import … from "…/native"
and others usingdist
. Clean uppackage.json
exportingdist
entry points.../dist
in tests.~alfa-cli
generates its files in another directory, which actually just means moving them tosrc
and generate inbin
where they already are.validate-structure
.Alfa-companion:
module
fromcommonjs
tonode16
. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.verbatimModuleSyntax
to TS config.target
toes2022
. Features are supported by all browsers (except IE) since several versions ago.dist
rather thansrc
. Seems to be better practice now 🤔jsxImportSource
.import {h}
,import … from "…/native"
and others usingdist
. Clean uppackage.json
exportingdist
entry points.../dist
in tests.~Alfa-examples:
module
fromcommonjs
tonode16
. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.verbatimModuleSyntax
to TS config.target
toes2022
. Features are supported by all browsers (except IE) since several versions ago.jsxImportSource
.import {h}
,import … from "…/native"
and others usingdist
. Clean uppackage.json
exportingdist
entry points.../dist
in tests.~Alfa-act-r:
module
fromcommonjs
tonode16
. This is the recommended setting for libraries. It will imply updating all internal imports to include extension.verbatimModuleSyntax
to TS config.target
toes2022
. Features are supported by all browsers (except IE) since several versions ago.jsxImportSource
.import {h}
,import … from "…/native"
and others usingdist
. Clean uppackage.json
exportingdist
entry points.