Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop maxNodeModuleJsDepth #5972

Closed
wants to merge 12 commits into from
2 changes: 1 addition & 1 deletion packages/ERTP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint .",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json"
"lint:types": "tsc -p jsconfig.json"
},
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/SwingSet/exported.js
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/// <reference types="./src/vats/timer/types"/>

// XXX without this types don't resolve
// eslint-disable-next-line import/no-extraneous-dependencies -- TODO remove
import '@agoric/governance/exported.js';

// XXX https://github.com/endojs/endo/issues/1254
import '@endo/captp/src/types.js';
2 changes: 1 addition & 1 deletion packages/SwingSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:xs-worker": "ava test/workers/test-worker.js -m 'xs vat manager'",
"lint-fix": "yarn lint:eslint --fix",
"lint": "yarn lint:types&&yarn lint:eslint",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint ."
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/SwingSet/src/controller/initializeSwingset.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import fs from 'fs';
import path from 'path';

// XXX types resolution
import '@endo/bundle-source/src/types.js';

import { resolve as resolveModuleSpecifier } from 'import-meta-resolve';
import { assert, details as X } from '@agoric/assert';
import bundleSource from '@endo/bundle-source';
Expand Down
4 changes: 4 additions & 0 deletions packages/agoric-cli/src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* eslint-disable @jessie.js/no-nested-await */
/* global process */

// XXX types resolution https://github.com/endojs/endo/issues/1254
import '@endo/captp/src/types.js';

import { Command } from 'commander';
import path from 'path';
import { assert, details as X } from '@agoric/assert';
Expand Down
2 changes: 1 addition & 1 deletion packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint --ext .js,.ts ."
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/casting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint --ext .js,.ts ."
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/cosmic-swingset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint ."
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/deploy-script-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint:eslint": "eslint .",
"lint:types": "tsc --maxNodeModuleJsDepth 5 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint": "run-s --continue-on-error lint:*"
},
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions packages/deploy-script-support/src/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-check
import '@agoric/inter-protocol/exported.js';
import '@endo/captp/src/types.js';
import '@agoric/zoe/exported.js';
import { E } from '@endo/far';

Expand Down
2 changes: 1 addition & 1 deletion packages/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint .",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json"
"lint:types": "tsc -p jsconfig.json"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/inter-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint .",
"lint:types": "tsc --maxNodeModuleJsDepth 5 -p jsconfig.json"
"lint:types": "tsc -p jsconfig.json"
},
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions packages/inter-protocol/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
// @ts-check
/// <reference types="ses"/>

// Ambient types. Needed only for dev but this does a runtime import.
import '@agoric/notifier/exported.js';

export { calculateCurrentDebt } from './interest-math.js';
2 changes: 1 addition & 1 deletion packages/notifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint .",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json"
"lint:types": "tsc -p jsconfig.json"
},
"repository": {
"type": "git",
Expand Down
5 changes: 3 additions & 2 deletions packages/notifier/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
* @typedef {import('@endo/far').ERef<T>} ERef
*/

// XXX import src/types until https://github.com/endojs/endo/issues/1254
/**
* @template T
* @typedef {import('@endo/promise-kit').PromiseKit<T>} PromiseKit
* @typedef {import('@endo/promise-kit/src/types.js').PromiseKit<T>} PromiseKit
*/

/**
* Deprecated. Use PromiseKit instead.
*
* @template T
* @typedef {import('@endo/promise-kit').PromiseRecord<T>} PromiseRecord
* @typedef {import('@endo/promise-kit/src/types.js').PromiseRecord<T>} PromiseRecord
*/

/**
Expand Down
4 changes: 4 additions & 0 deletions packages/pegasus/exported.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// XXX without this types don't resolve
// eslint-disable-next-line import/no-extraneous-dependencies -- TODO remove
import '@agoric/inter-protocol/exported.js';

import './src/types.js';
import '@agoric/notifier/exported.js';
import '@agoric/ertp/exported.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/pegasus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint .",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json"
"lint:types": "tsc -p jsconfig.json"
},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion packages/pegasus/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/**
* @typedef {string} Denom
* @typedef {string} DepositAddress
* @typedef {string} Address
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/solo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint ."
},
"keywords": [],
Expand Down
3 changes: 3 additions & 0 deletions packages/solo/src/entrypoint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#! /usr/bin/env node

// XXX types resolution
import '@agoric/swingset-vat/exported.js';

import '@endo/init/pre-bundle-source.js';

// import lmdb early to work around SES incompatibility
Expand Down
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint ."
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/telemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint ."
},
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 5 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint ."
},
"keywords": [],
Expand Down
5 changes: 5 additions & 0 deletions packages/wallet/api/exported.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
// XXX without this types don't resolve
// eslint-disable-next-line import/no-extraneous-dependencies -- TODO remove
import '@agoric/governance/exported.js';
import '@agoric/zoe/exported.js';

import './src/types.js';
2 changes: 1 addition & 1 deletion packages/wallet/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:xs": "exit 0",
"lint": "run-s --continue-on-error lint:*",
"lint-fix": "yarn lint:eslint --fix",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint ."
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:watch": "web-test-runner --watch",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint . --ignore-path .gitignore",
"analyze": "cem analyze --litelement",
"start": "web-dev-server --port 8100"
Expand Down
4 changes: 4 additions & 0 deletions packages/zoe/exported.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// XXX without this types don't resolve
// eslint-disable-next-line import/no-extraneous-dependencies -- TODO remove
import '@agoric/inter-protocol/exported.js';

import './src/contractFacet/types.js';
import './src/zoeService/types.js';
import './src/contractSupport/types.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint .",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json"
"lint:types": "tsc -p jsconfig.json"
},
"repository": {
"type": "git",
Expand Down