•  
      request #26381 Prevent relative imports outside of a package
    Infos
    #26381
    Thomas Gerbet (tgerbet)
    2023-01-02 15:49
    2022-04-08 13:10
    27910
    Details
    Prevent relative imports outside of a package

    Relative imports outside of a package are problematic, they hide the dependency and cause issues when caching the build results since the graph is incomplete.

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2023-01-02
    Attachments
    Empty
    References
    Referencing request #26381

    Git commit

    tuleap/tuleap/stable

    Replace relative imports of the vite-configurator with a package import d749548848
    Remove tlp.dom-walker 6b55b8bba9
    Replace relative imports of the webpack-configurator with a package import f31f851cc8
    Replace relative imports of jest configuration with a package import 404e5ac6c9
    Replace relative imports of async gettext init by a package import 03a8d1d666
    Replace relative imports of the store-wrapper-jest helper with a package import dcbd725901
    Replace relative imports of vue2-gettext-init with a package import 9aa1e71e84
    Replace relative imports of TLP swatch colors with a package import 8e455d6fe1
    Replace relative import of Cypress support command with a package import 1ad4dba15d
    Replace relative import of TQL CodeMirror with a package import d5b0619e83
    Replace relative import of the copy-to-clipboard custom element with a package import 67071c4a37
    Replace relative import of the tlp-relative-date custom element with a package import 4c7cbc265a
    Replace relative import of the tracker colorpicker with a package import e461168661
    replace relative import of tuleap feedback with a package import 8ef0fed908
    Move SkeletonTable.vue inside the same package of its only consumer d4e048f2a4
    Replace relative import of the "autocomplete for select2" script with a package import a1376ec692
    Replace relative import of the shared code between AD apps with a package import 373fe68f58
    Move cumulative flow chart in kanban (its only user) 4696b9b18a
    Do not do a relative import of the scrum-header.js in the PV2 app b4a301dc15
    Replace relative imports of pie chart with a package import 7d5f705faf
    Replace relative imports of chart builder with a package import f94824d793
    Replace relative import of the "potentially dangerous BiDi chars" with a package import dd6ee2d0ed
    Replace relative import of the user group constants with a package import 39dc762c67
    Replace relative import of the permissions per group badge with a package import 81b7919248
    chore: Replace relative import of project background Sass with a package import 477182510f
    Move user-and-ugroup-autocompleter.js outside of @tuleap/core 009c190cc4
    doc: Frontend libraries f742bd3708
    Replace relative import of the burnup chart transformer with a package import 626d7e2d68
    Make sure no relative imports are made between packages 89d01812ad
    Replace relative imports of the webpack-configurator with a package import 40efcc66fe
    Replace relative imports of the webpack-configurator with a package import daa6f3ed2f
    Replace relative imports of the webpack-configurator with a package import 551d9e3231
    Replace relative imports of the webpack-configurator with a package import 13dca1254a

    Follow-ups