Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Conversation

@borekb
Copy link
Member

@borekb borekb commented Mar 17, 2019

Issue: #1389

Part of #1401 will be a run-tests.ts script for which I needed a bit updated scripts directory, which is done in this PR as it's a relatively separate work.

Main changes:

  • The scripts folder is now a project with its own package.json. This allows to clearly state which dependencies are for scripts and which are global in the root package.json – not many are left there, see 4083e35.
    • Also, tsconfig.json moved to scripts.
  • Update all the dependencies after a while (no breaking changes, all went smoothly). d4936cf
  • All scripts can now be called from whichever cwd – they have been updated to contain paths relative to repo root explicitly. 273cd33

borekb added 5 commits March 17, 2019 10:40
This also required a couple of small code fixes.
This moves most dependencies from root `package.json` to `scripts/package.json`.

Also, on `npm install`, scripts's `npm install` is called automatically.

Scripts are called a bit differently from the root `package.json` file, with `node -r ./scripts/node_modules/ts-node/register ...` instead of `ts-node` as `ts-node` is no longer a root-level dependency.
The `exitIfNotRunFromRootDir()` function has been removed and instead, all scripts have been updated to use paths relative to `repoRoot`.
Also, the root-level `debug-script` task has been removed as it's no longer necessary.
@borekb borekb added the scope: dev-infrastructure Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc. label Mar 17, 2019
@borekb borekb added this to the 4.0 milestone Mar 17, 2019
@borekb borekb self-assigned this Mar 17, 2019
@borekb borekb changed the title 1389 scripts update 'Scripts' project with its own package.json, deps update Mar 17, 2019
@borekb borekb merged commit dbfa7f3 into master Mar 17, 2019
@borekb borekb deleted the 1389-scripts-update branch March 17, 2019 20:06
borekb added a commit that referenced this pull request Mar 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

scope: dev-infrastructure Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants