Commit Graph

237 Commits

Author SHA1 Message Date
Dirk Stolle
088e52f386 fix a few typos in tools directory 2022-11-03 17:42:40 +01:00
Denilson
0540ffc896 Merge pull request #12049 from meteor/fix/watching-windows-paths
Fix win style paths being added to watch sets
2022-05-31 10:05:21 -04:00
zodern
bcafd7cb8c Fix outdated comment for readAndWatchFileWithHash 2022-04-21 19:05:59 -05:00
zodern
e1ddf96a07 Improve error messages from readBufferWithLengthAndOffset 2022-04-18 10:35:23 -04:00
Renan Castro
875f656a6f Merge branch 'release-2.6.1' into release-2.7
# Conflicts:
#	meteor
#	npm-packages/meteor-babel/package-lock.json
#	npm-packages/meteor-babel/package.json
#	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
#	packages/babel-compiler/package.js
#	packages/meteor-tool/package.js
#	scripts/admin/meteor-release-experimental.json
#	scripts/dev-bundle-tool-package.js
2022-02-18 17:29:03 -03:00
Renan Castro
455c01e7aa Revert missing binary permission bit when packing a meteor bundle on Windows 2022-02-17 15:34:39 -03:00
Filipe Névola
33ad4b58b9 Merge pull request #11882 from meteor/build-plugins-handle-css-minifier-caching
Have build plugins handle caching for css minifiers
2022-02-05 14:43:19 +00:00
zodern
b6a7f7c33d Add readdirWithTypesSync to Plugin.fs 2022-02-01 18:56:26 -06:00
denihs
18bfd070ab Fixing breaking changes with [Typescript](https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/#using-unknown-in-catch-variables). 2022-02-01 16:25:07 -04:00
Renan Castro
c055907768 Merge pull request #11879 from meteor/fix-11877
When creating a tarball, ensure the fmode and dmode are set to readable/writable for sharing tarballs between windows/unixes
2022-01-31 10:53:25 -03:00
Renan Castro
e3040e2ca6 When creating a tarball, ensure the fmode and dmode are set to readable/writable for sharing tarballs between windows/unixes 2022-01-31 10:07:27 -03:00
zodern
1498b78df7 Fix resolving npm deps when on different drive 2022-01-21 15:22:20 -06:00
Filipe Névola
2732e97702 Clean up unused functions and imports in tools/fs/files.ts 2022-01-18 14:21:42 -04:00
Renan Castro
4a18514560 Standardize only one way of extracting tars, as native ones can be tricky with permissions.
Fix issue while extracting archives created on windows, inside linux/mac with permissions
2022-01-18 14:19:58 -04:00
Renan Castro
42ae637d97 Update tar library for faster extractions/compressions - fix extract test 2022-01-18 14:16:49 -04:00
Renan Castro
8ee02968a6 Update tar library for faster extractions/compressions - remove unused import 2022-01-18 14:16:48 -04:00
Renan Castro
ff81b7fc9c Update tar library for faster extractions/compressions - use node-fs for manipulating tar streams 2022-01-18 14:16:47 -04:00
Renan Castro
eda0180a8e Update tar library for faster extractions/compressions - use node-fs for manipulating tar streams 2022-01-18 14:16:47 -04:00
zodern
bb6a251d7d Fix type error 2021-10-15 16:06:11 -05:00
Jan Dvorak
fbcd920efa Merge branch 'release-2.5' into feature/recursive-file-watchers 2021-10-15 20:32:11 +02:00
zodern
b22e80215d Avoid creating nested recursive watchers 2021-10-15 12:14:56 -05:00
zodern
4ceb79192e Fix types 2021-10-15 11:27:35 -05:00
zodern
f9cf9d1901 Recreate stat watcher when interval changes
Node 14 made statWatcher.start a no-op, so there is no longer a way to change the interval for an existing stat watcher.
2021-10-15 11:27:35 -05:00
zodern
d85061ba5d Remove disableNativeWatcher 2021-10-15 11:13:52 -05:00
zodern
6bd370c8ff Use recursive watchers 2021-10-15 11:13:52 -05:00
zodern
100357e078 Disable native file watching during meteor create 2021-09-03 20:42:47 -07:00
Jan Dvorak
8a08a65290 Merge branch 'release-2.3' into remove-compat-bellow-1.0 2021-05-21 15:18:18 +02:00
Filipe Névola
cb00f74cd2 Merge branch 'release-2.3' into release-node-14 2021-05-19 17:34:55 -04:00
Jan Dvorak
e404ab2330 More TS fixes 2021-05-17 19:53:31 +02:00
Jan Dvorak
628397ad78 More TS fixes 2021-05-17 18:54:01 +02:00
Jan Dvorak
351aff785c Fix Typescript type issues 2021-05-17 18:07:39 +02:00
Jan Dvorak
8ec9f0b7be meteor-babel => @meteorjs/babel 2021-05-07 19:43:37 +02:00
Jan Dvorak
87340709b4 Fix bundle and build tests 2021-04-23 17:57:26 +02:00
Jan Dvorak
91ecb1b8c0 Return bundle command & unipackage-pre2 handling 2021-04-23 17:57:01 +02:00
Jan Dvorak
b5b7306bed Remove deprecated code from before v1.0
Remove deprecated code from before Meteor 1.0 that  was documented via XXX COMPAT in comments. Move deprecated packages into the deprecated folder (deps, livedata, srp).
2021-04-23 17:56:05 +02:00
filipenevola
5ed26e96b2 fix BigIntStats error on TypeScript
ignore Operator '&' cannot be applied to types 'number | bigint' and 'number'.
2021-02-23 20:47:20 -04:00
filipenevola
82932230d9 fix BigIntStats error on TypeScript
ignore Operator '&' cannot be applied to types 'number | bigint' and 'number'.
2021-02-23 20:46:38 -04:00
Renan Castro
60b41c357b Update Typescript to 4.1.2 - fix breaking changes 2020-11-26 18:04:06 -03:00
Renan Castro
dbd79ed5ea Update Typescript to 4.1.2 - fix breaking changes 2020-11-26 17:59:50 -03:00
filipenevola
0bcf0f9ec6 Fixes TS2783 on treeHash 2020-10-28 17:38:34 -04:00
filipenevola
fbb62ca9cf Merge branch 'release-1.10.3' into cache-build-before-deploy 2020-07-27 13:27:53 -04:00
filipenevola
bb42fa8137 Adds the option to cache the build on deploy 2020-07-27 11:23:38 -04:00
filipenevola
5ea682449e fixes ts error on files.ts 2020-07-27 11:22:25 -04:00
filipenevola
d01c859cd3 fixes ts error on files.ts 2020-07-24 07:43:35 -04:00
zodern
5e79e56fb7 Fix typescript error 2020-06-24 15:30:35 -05:00
zodern
cbb23cca5a Disable deduplicating watchers by ino on Windows 2020-06-24 15:23:34 -05:00
zodern
cf92ff886b Reduce stats in readAndStatDirectory 2020-06-24 15:19:04 -05:00
zodern
d7b3d2e398 Add files.readdirWithTypes 2020-06-24 15:18:01 -05:00
Ben Newman
9c852da695 Make optimisticLookupPackageJson return array of package.json objects.
Commit 646fa4e3ee fixed #10547 by
restricting optimisticLookupPackageJson to package.json files with a
"name" property, which effectively skipped over intermediate package.json
files with additional properties.

However, in Node.js 12.16.0 (Meteor 1.9.1+), modules evaluated natively by
Node are considered ECMAScript modules if the closest package.json file
has "type": "module" (or has an .mjs file extension). This poses a problem
for the module.useNode() trick (see packages/modules-runtime/server.js),
because ESM modules cannot be imported using require.

For example, recent versions of the @babel/runtime package have a
@babel/runtime/helpers/esm/package.json file for the ESM versions of its
helpers (which specifies "type": "module"), but that package.json file
does not have a "name" property, because it is not the root package.json
file representing the entire @babel/runtime package.

I considered making the "name" restriction configurable, but that would
have fragmented the caching of optimisticLookupPackageJson. Instead, I
made it return an array of all potentially relevant package.json objects,
which can be safely cached.

This means that the caller has to iterate over the array, but there is
only one call site for this function (in tools/isobuild/package-source.js)
right now, so that wasn't too much work.
2020-02-19 15:24:42 -04:00
seke
830b8a40cb Update source-map to 0.7.3
source-map 0.7.0+ has a much faster Rust WASM implementation.
Because this needs to be loaded, the constructor is now asynchronous.
The consumer should also be destroyed after it's no longer needed.
2019-11-26 14:15:33 -05:00