Skip to content

Commit 23ae564

Browse files
committed
wip: remove some packages
1 parent 6a4ec1d commit 23ae564

File tree

5 files changed

+6
-33
lines changed

5 files changed

+6
-33
lines changed

meteor/.meteor/packages

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@
88

99
# but you can also edit it by hand.
1010

11-
[email protected] # Packages every Meteor app needs to have
11+
12+
13+
14+
1215
[email protected] # The database Meteor supports right now
13-
[email protected] # Reactive variable for tracker
1416

1517
[email protected] # Enable ECMAScript2015+ syntax in app code
1618
[email protected] # Enable TypeScript syntax in .ts and .tsx modules
17-
[email protected] # Server-side component of the `meteor shell` command
1819

1920
[email protected] # Meteor's client-side reactive programming library
2021

21-
22-
ostrio:meteor-root
2322
2423

2524
zodern:types

meteor/__mocks__/_setupMocks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jest.mock('meteor/check', (...args) => require('./check').setup(args), { virtual
1616
jest.mock('meteor/tracker', (...args) => require('./tracker').setup(args), { virtual: true })
1717
jest.mock('meteor/accounts-base', (...args) => require('./accounts-base').setup(args), { virtual: true })
1818
jest.mock('meteor/ejson', (...args) => require('./ejson').setup(args), { virtual: true })
19-
jest.mock('meteor/reactive-var', (...args) => require('./reactive-var').setup(args), { virtual: true })
2019

2120
jest.mock('meteor/mdg:validated-method', (...args) => require('./validated-method').setup(args), { virtual: true })
2221
jest.mock('meteor/julusian:meteor-elastic-apm', (...args) => require('./meteor-elastic-apm').setup(args), {

meteor/__mocks__/reactive-var.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

meteor/server/lib.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ import fs from 'fs'
44
import path from 'path'
55
import { logger } from './logging'
66
import { stringifyError } from '@sofie-automation/shared-lib/dist/lib/stringifyError'
7-
import { Meteor } from 'meteor/meteor'
87

98
/** Returns absolute path to programs/server directory of your compiled application, without trailing slash. */
109
export function getAbsolutePath(): string {
11-
// @ts-expect-error Meteor.absolutePath is injected by the package ostrio:meteor-root
12-
return Meteor.absolutePath
10+
const rootPath = path.resolve('.')
11+
return rootPath.split(`${path.sep}.meteor`)[0]
1312
}
1413
export function extractFunctionSignature(f: Function): string[] | undefined {
1514
if (f) {

0 commit comments

Comments
 (0)