Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Rename truffle-require to @truffle/require
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplantzzz committed Aug 27, 2019
1 parent d867f6f commit f96f2b4
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "truffle-require",
"name": "@truffle/require",
"description": "Require and execute a Javascript module within a Truffle context",
"license": "MIT",
"author": "Tim Coulter <tim.coulter@consensys.net>",
"homepage": "https://github.com/trufflesuite/truffle-exec#readme",
"repository": "https://github.com/trufflesuite/truffle/tree/master/packages/truffle-require",
"author": "Tim Coulter <tim@trufflesuite.com>",
"homepage": "https://github.com/trufflesuite/truffle/tree/master/packages/require#readme",
"repository": "https://github.com/trufflesuite/truffle/tree/master/packages/require",
"bugs": {
"url": "https://github.com/trufflesuite/truffle-exec/issues"
"url": "https://github.com/trufflesuite/truffle/issues"
},
"version": "2.0.19",
"main": "require.js",
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions packages/require/test/lib/module_with_local_file_require.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var path = require("path");
var module_with_global_require = require(path.join(
__dirname,
"module_with_global_require.js"
));

module.exports = function() {
return module_with_global_require;
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// mocha is a dependency of truffle-require, thus it is locally installed.
// mocha is a dependency of @truffle/require, thus it is locally installed.
var mocha = require("mocha");

module.exports = function() {
Expand Down
2 changes: 1 addition & 1 deletion packages/truffle-core/lib/commands/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const command = {
const Config = require("truffle-config");
const Contracts = require("@truffle/workflow-compile");
const ConfigurationError = require("../errors/configurationerror");
const Require = require("truffle-require");
const Require = require("@truffle/require");
const { Environment } = require("truffle-environment");
const path = require("path");
const OS = require("os");
Expand Down
2 changes: 1 addition & 1 deletion packages/truffle-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"truffle-migrate": "^3.0.31",
"truffle-provider": "^0.1.15",
"truffle-provisioner": "^0.1.5",
"truffle-require": "^2.0.19",
"@truffle/require": "^2.0.19",
"truffle-resolver": "^5.0.15",
"@truffle/workflow-compile": "^2.1.3",
"universal-analytics": "^0.4.17",
Expand Down
2 changes: 1 addition & 1 deletion packages/truffle-migrate/migration.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require("path");
const Deployer = require("truffle-deployer");
const Require = require("truffle-require");
const Require = require("@truffle/require");
const Emittery = require("emittery");
const { Web3Shim } = require("truffle-interface-adapter");

Expand Down
4 changes: 2 additions & 2 deletions packages/truffle-migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "truffle-migrate",
"description": "On-chain migrations management",
"license": "MIT",
"author": "Tim Coulter <tim.coulter@consensys.net>",
"author": "Tim Coulter <tim@trufflesuite.com>",
"homepage": "https://github.com/trufflesuite/truffle-migrate#readme",
"repository": "https://github.com/trufflesuite/truffle/tree/master/packages/truffle-migrate",
"bugs": {
Expand All @@ -22,7 +22,7 @@
"@truffle/expect": "^0.0.9",
"truffle-interface-adapter": "^0.2.4",
"@truffle/reporters": "^1.0.12",
"truffle-require": "^2.0.19",
"@truffle/require": "^2.0.19",
"web3": "1.2.1"
},
"devDependencies": {
Expand Down

This file was deleted.

0 comments on commit f96f2b4

Please sign in to comment.