Julien Fontanet
7864c05ee1
fix: race condition between normalize-packages and usage-to-readme
...
The first was writting `package.json` at the same time the second one was reading it.
The file is now read only once by `normalize-packages`.
2024-01-31 16:22:07 +01:00
Julien Fontanet
1026d18e4b
fix(usage-to-readme): remove another debug log
...
Introduced by a62433081
2024-01-31 16:10:42 +01:00
Julien Fontanet
3360399b2a
fix(usage-to-readme): remove debug logs
...
Introduced by a62433081
2024-01-31 10:15:37 +01:00
Julien Fontanet
a624330818
fix(usage-to-readme): fix multiple .USAGE.md changes
2024-01-19 10:23:52 +01:00
Julien Fontanet
c2cb51a470
feat(lint-staged): add .USAGE.md → README.md
...
So that it's not needed to manually runs from `normalize-packages.js`.
2024-01-18 12:34:23 +01:00
Thierry Goettelmann
ea19b0851f
feat(lite): upgrade deps + root eslint config ( #7292 )
2024-01-15 11:12:53 +01:00
Julien Fontanet
f0da94081b
feat(gen-deps-list): detect duplicate packages
...
Prevents a bug where a second entry would override the previous one and possibly
decrease the release type (e.g. `major + patch → patch`).
2023-12-07 17:15:09 +01:00
Julien Fontanet
59f04b4a6b
chore: format with Prettier
2023-11-20 12:34:30 +01:00
Gabriel Gunullu
3f73138fc3
fix(test-integration): run integration tests only in ci ( #6826 )
...
Fixes issues introduced by
- be6233f
- adc5e7d
After the switching from Jest to Tap/Test, those tests were no longer executed during the test-integration script.
2023-05-11 17:47:48 +02:00
Julien Fontanet
5885df4ae9
fix(scripts/gen-deps-list.js): non-zero status code on invalid arg
...
Also, display the usage on stderr instead of stdout.
2023-03-16 11:21:53 +01:00
Julien Fontanet
1942e55f76
fix(scripts/bump-pkg): fix npm *Cannot set properties of null (setting 'parent')* error
2023-03-06 17:23:59 +01:00
Julien Fontanet
617619eb31
fix(scripts/gen-deps-list): fix peer dependencies order
...
Introduced by 1f3255774
2023-03-06 11:05:23 +01:00
Julien Fontanet
2a70ebf667
docs: uniformize code blocks
...
- add missing syntaxes
- don't put prompt if no command outputs to ease copy/paste and use `sh` syntax
- always use `$` as prompt and use `console` syntax
2023-02-06 11:25:12 +01:00
Julien Fontanet
df11a92cdb
feat(scripts/gen-deps-list.js): add debug logs
2022-12-07 14:35:49 +01:00
Julien Fontanet
1f32557743
fix(scripts/gen-deps-list): fix packages order ( #6564 )
...
The release order computation is now uncoupled of the packages to release computation, and is now done for all packages so that transitive dependencies are still correctly ordered.
2022-11-30 14:52:46 +01:00
Julien Fontanet
e0b4069c17
fix(scripts/bump-pkg): don't call git add --patch
twice
2022-11-29 18:56:03 +01:00
Julien Fontanet
6b25a21151
feat(scripts/bump-pkg): ignore yarn.lock changes
2022-11-29 18:56:03 +01:00
Julien Fontanet
d6192a4a7a
chore: remove unused travis-tests.js
2022-11-28 15:51:47 +01:00
Julien Fontanet
9d5bc8af6e
feat: run-script.js now only shows output on error by default
2022-11-25 15:45:52 +01:00
Julien Fontanet
9480079770
feat: script test-unit now bails on first error
2022-11-25 15:45:08 +01:00
Julien Fontanet
09a2f45ada
feat: run test script for all pkgs with changed files
2022-11-22 17:30:14 +01:00
Julien Fontanet
83a7dd7ea1
chore: remove custom scripts/lint-staged
2022-11-22 17:30:14 +01:00
Julien Fontanet
08298d3284
feat: limit concurrency of root build script
...
Should fixes https://xcp-ng.org/forum/post/54567
2022-11-10 18:09:05 +01:00
Julien Fontanet
20dbbeb38e
feat(npmignore): handle *.test.*js files
...
This naming scheme is used by `node:test` and its userland implementation `test`.
2022-10-20 17:00:49 +02:00
Julien Fontanet
37dea9980e
fix(npmignore): handle .cjs and .mjs files
2022-10-20 16:58:30 +02:00
Pierre Donias
18d03a076b
fix(xo-web/backup/restore): don't use UNSAFE_componentWillReceiveProps
( #6364 )
...
Introduced by 7d6e832226
`UNSAFE_componentWillReceiveProps` method was only introduced in React 16 but we
are using React 15
`.eslintrc`: ask eslint to check the React version so that it doesn't suggest to
change it to `UNSAFE_componentWillReceiveProps`
2022-08-11 11:19:07 +02:00
Julien Fontanet
a0994bc428
fix(scripts/gen-deps-list.js): add missing await
...
Introduced by a0836ebdd
2022-06-01 16:51:31 +02:00
Julien Fontanet
8fe0d97aec
fix(scripts/gen-deps-list.js): fix packages order ( #6259 )
...
`deptree` nodes should be added only once with the full list of their dependencies.
For better display, packages are sorted by names before resolving the graph for nicer display.
2022-06-01 16:07:36 +02:00
Thierry Goettelmann
70608ed7e9
fix(scripts/gen-deps-lists.js): various fixes
2022-06-01 14:04:41 +02:00
Julien Fontanet
a0836ebdd7
feat(scripts/gen-deps-list.js): test mode ( #6258 )
2022-06-01 13:53:56 +02:00
Thierry Goettelmann
8ec8a3b4d9
feat(scripts/gen-deps-list.js): should now be used only during release ( #6234 )
2022-05-24 11:01:05 +02:00
Thierry Goettelmann
50f3ab7798
feat(scripts/gen-deps-list.js): new util to generate deps list ( #6181 )
2022-05-04 09:57:21 +02:00
Julien Fontanet
23189ed8f9
chore(scripts): add .js suffix for better Prettier/ESLint integration
2022-04-08 14:14:41 +02:00
Julien Fontanet
7e27e0bda8
linting: enable eslint-plugin-n recommended rules
...
And fixes a lot of related issues.
2022-03-23 11:18:37 +01:00
Julien Fontanet
e9aa88e637
chore(scripts): fix lint errors
2022-03-02 17:48:26 +01:00
Julien Fontanet
b3d0da7392
feat(eslint): use correct sourceType for scripts and modules
2022-02-22 12:02:57 +01:00
Julien Fontanet
471fbef6ef
chore: hide USAGE.md
...
This highlight the fact that it's not designed for direct consumption and it no longer needs a special handling in `npmignore`.
2022-02-18 17:11:52 +01:00
Julien Fontanet
6022a1bbaa
feat(normalize-packages): delete unused Babel configs
2021-12-23 09:26:00 +01:00
Julien Fontanet
cf45cb56ad
feat(npmignore): ignore /coverage/
2021-05-11 09:04:35 +02:00
Julien Fontanet
a58bf66dea
feat(scripts/travis-tests): handle .[cm]js
files
2021-05-10 23:21:10 +02:00
Julien Fontanet
dc41f60f52
feat(scripts/lint-staged): handle .[cm]js
files
2021-05-10 14:50:19 +02:00
Julien Fontanet
3f42199f8f
feat(normalize-packages): dont use files field
...
A centralized npmignore is easier to use and maintain.
2021-04-23 14:47:34 +02:00
Julien Fontanet
251ccd2e38
chore(npmignore): dont publish docs directories
2021-04-23 14:47:34 +02:00
Julien Fontanet
82ccf5886e
chore(npmignore): dont publish hidden files
2021-04-23 14:47:34 +02:00
Julien Fontanet
6acb1e3853
chore(eslint): only use @babel/eslint-parser for pkgs using Babel
2021-04-23 14:47:34 +02:00
Julien Fontanet
3c5d73224a
feat(normalize-packages): delete empty dependencies, description and keywords fields
2021-04-07 15:14:48 +02:00
Julien Fontanet
5a17c75fe4
feat: unified .npmignore for all packages
...
Ensure sources, tests and USAGE.Md files will not be published.
2021-04-07 13:58:14 +02:00
Julien Fontanet
4dc5eff252
chore(normalize-packages): remove unused require
2021-04-07 13:39:12 +02:00
Julien Fontanet
bcfb19f7c5
feat(normalize-packages): delete empty bin field
2021-03-11 12:15:53 +01:00
Julien Fontanet
7a8ca2f068
chore: change print width to 120 chars
2020-11-24 10:51:35 +01:00