Fix broken import path in test262-preprocessor

Previously we weren't ever clearing the `dist` directory so there were likely 
some vestigial files left over from previous builds that might have confused the 
import path. This commit fixes the import path and also deletes the `dist` 
directory on every build to ensure a clean slate.
This commit is contained in:
Lauren Tan
2022-12-21 16:04:29 -05:00
parent f72397b5c1
commit 003a1772ab
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -8,7 +8,7 @@
"src"
],
"scripts": {
"build": "tsc && scripts/hash-dist.sh",
"build": "rimraf dist && tsc && scripts/hash-dist.sh",
"bundle:meta": "scripts/bundle-meta.sh",
"dev": "concurrently --kill-others \"tsc --watch\" \"yarn:playground\"",
"playground": "cd packages/playground && yarn && yarn dev",
@@ -59,6 +59,7 @@
"jest-environment-jsdom": "^29.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.2",
"test262-harness": "^8.0.0",
"ts-jest": "^29.0.1",
"ts-node": "^10.9.1",
@@ -1,4 +1,4 @@
const BabelPluginReactForget = require("../dist/BabelPlugin").default;
const BabelPluginReactForget = require("../dist/Babel/BabelPlugin").default;
const transformSync = require("@babel/core").transformSync;
// Preprocessor that runs Forget on the test262 test prior to execution. Compilation errors short