mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user