diff --git a/packages/no-trapping-shim/index.js b/packages/no-trapping-shim/index.js index e69de29bb2..42a68f007b 100644 --- a/packages/no-trapping-shim/index.js +++ b/packages/no-trapping-shim/index.js @@ -0,0 +1 @@ +export * from './src/no-trapping-pony.js'; diff --git a/packages/no-trapping-shim/package.json b/packages/no-trapping-shim/package.json index e107c4bb95..42c20f99de 100644 --- a/packages/no-trapping-shim/package.json +++ b/packages/no-trapping-shim/package.json @@ -20,6 +20,7 @@ "module": "./index.js", "exports": { ".": "./index.js", + "./shim.js": "./shim.js", "./package.json": "./package.json" }, "scripts": { diff --git a/packages/no-trapping-shim/src/no-trapping-shim.js b/packages/no-trapping-shim/shim.js similarity index 72% rename from packages/no-trapping-shim/src/no-trapping-shim.js rename to packages/no-trapping-shim/shim.js index e7366e5638..b20931f038 100644 --- a/packages/no-trapping-shim/src/no-trapping-shim.js +++ b/packages/no-trapping-shim/shim.js @@ -1,5 +1,5 @@ /* global globalThis */ -import { ReflectPlus, ObjectPlus, ProxyPlus } from './no-trapping-pony.js'; +import { ReflectPlus, ObjectPlus, ProxyPlus } from './src/no-trapping-pony.js'; globalThis.Reflect = ReflectPlus; diff --git a/packages/no-trapping-shim/test/no-trapping-shim.test.js b/packages/no-trapping-shim/test/no-trapping-shim.test.js index d1393d9279..b6ac48c25d 100644 --- a/packages/no-trapping-shim/test/no-trapping-shim.test.js +++ b/packages/no-trapping-shim/test/no-trapping-shim.test.js @@ -2,7 +2,7 @@ // dependencies. We will need similar tests is higher level packages, in order // to test compat with ses and ses-ava. import test from 'ava'; -import '../src/no-trapping-shim.js'; +import '../shim.js'; const { freeze, isFrozen } = Object;