Add core-runtime package

This commit is contained in:
zodern
2022-12-12 15:13:34 -06:00
parent 93d0bc5e34
commit 41d033a5cb
5 changed files with 15 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
Package.describe({
summary: "Core runtime to load packages and the app",
version: '1.0.0'
});
Package.onUse(function (api) {
// This package is linked differently since it sets up the runtime
// the linker expects to exist.
// Currently this package can not use any exports or ordered dependencies
api.addFiles('package-registry.js');
});

View File

@@ -16,6 +16,7 @@ Npm.depends({
Package.onUse(function (api) {
api.use('isobuild:compiler-plugin@1.0.0');
api.use('core-runtime');
api.export('Meteor');
@@ -28,7 +29,6 @@ Package.onUse(function (api) {
api.export("meteorEnv");
api.addFiles('cordova_environment.js', 'web.cordova');
api.addFiles('define-package.js', ['client', 'server']);
api.addFiles('helpers.js', ['client', 'server']);
api.addFiles('setimmediate.js', ['client', 'server']);
api.addFiles('timers.js', ['client', 'server']);

View File

@@ -170,7 +170,7 @@ var release = require('../packaging/release.js');
import { loadIsopackage } from '../tool-env/isopackets.js';
import { CORDOVA_PLATFORM_VERSIONS } from '../cordova';
import { gzipSync } from "zlib";
import { PackageRegistry } from "../../packages/meteor/define-package.js";
import { PackageRegistry } from "../../packages/core-runtime/package-registry.js";
import { optimisticLStatOrNull } from '../fs/optimistic';
const SOURCE_URL_PREFIX = "meteor://\u{1f4bb}app";

View File

@@ -1399,7 +1399,7 @@ Object.assign(Isopack.prototype, {
'tools', 'examples', 'LICENSE.txt', 'LICENSES',
'meteor', 'meteor.bat', 'scripts/admin/launch-meteor',
'packages/package-version-parser/package-version-parser.js',
'packages/meteor/define-package.js',
'packages/core-runtime/package-registry.js',
'packages/meteor/flush-buffers-on-exit-in-windows.js',
);