mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-29 05:46:18 +00:00
bc2377448f
Reorganize the code so that we have a single package.json file, which is at the root. All source code now lives under `src`, separated into `src/backend` and `src/explorer`. Test plan: - run `yarn start` - it works - run `yarn test` - it finds the tests (all in src/explorer) and they pass - run `yarn flow` - it works. (tested with an error, that works too) - run `yarn prettify` - it finds all the js files and writes to them
13 lines
305 B
JavaScript
13 lines
305 B
JavaScript
"use strict";
|
|
|
|
const path = require("path");
|
|
|
|
// This is a custom Jest transformer turning file imports into filenames.
|
|
// http://facebook.github.io/jest/docs/en/webpack.html
|
|
|
|
module.exports = {
|
|
process(src, filename) {
|
|
return `module.exports = ${JSON.stringify(path.basename(filename))};`;
|
|
},
|
|
};
|