Skip to content

Commit

Permalink
chore(xsnap): move lockdown-shim out of src/ to avoid tsc errors
Browse files Browse the repository at this point in the history
move lockdown-shim.js and the rest of the SES bootstrap files from
src/ to lib/ to avoid many tsc errors of the form...

```
Error: ../../node_modules/ses/src/error/assert.js(24,20): error TS2304: Cannot find name 'StringablePayload'.
```
  • Loading branch information
dckc committed Jan 23, 2021
1 parent 1801eec commit ef175c5
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '@agoric/xsnap/src/bootstrap';
import '@agoric/xsnap/lib/bootstrap';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/xsnap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"build": "yarn build:bin && yarn build:bundle",
"clean": "rm -rf build",
"lint": "yarn lint:js && yarn lint:types",
"lint:js": "eslint 'src/**/*.js'",
"lint:js": "eslint 'src/**/*.js' 'lib/**/*.js'",
"lint:types": "tsc -p jsconfig.json",
"lint-fix": "eslint --fix 'src/**/*.js'",
"lint-fix": "eslint --fix 'src/**/*.js' 'lib/**/*.js'",
"lint-check": "yarn lint",
"test": "ava",
"postinstall": "yarn build"
Expand Down
2 changes: 1 addition & 1 deletion packages/xsnap/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import commonjs from '@rollup/plugin-commonjs';

export default [
{
input: 'src/bootstrap.js',
input: 'lib/bootstrap.js',
output: {
file: `dist/bootstrap.umd.js`,
format: 'umd',
Expand Down

0 comments on commit ef175c5

Please sign in to comment.