From 8e0d247e8cdb33647233040e548fc1a8445dd964 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Tue, 30 Jan 2018 12:04:39 -0500 Subject: [PATCH] Fix: fixup package name [skip ci] --- packages/babel-template/src/populate.js | 4 ++-- packages/babel-template/test/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/babel-template/src/populate.js b/packages/babel-template/src/populate.js index d7c833635d..93cf4f1b67 100644 --- a/packages/babel-template/src/populate.js +++ b/packages/babel-template/src/populate.js @@ -19,7 +19,7 @@ export default function populatePlaceholders( throw new Error( `Error: No substitution given for "${placeholderName}". If this is not meant to be a - placeholder you may want to consider passing one of the following options to babel-template: + placeholder you may want to consider passing one of the following options to @babel/template: - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])} - { placeholderPattern: /^${placeholderName}$/ }`, ); @@ -45,7 +45,7 @@ export default function populatePlaceholders( (replacements && replacements[placeholder.name]) || null, ); } catch (e) { - e.message = `babel-template placeholder "${placeholder.name}": ${ + e.message = `@babel/template placeholder "${placeholder.name}": ${ e.message }`; throw e; diff --git a/packages/babel-template/test/index.js b/packages/babel-template/test/index.js index e3794e2498..5c49bc310b 100644 --- a/packages/babel-template/test/index.js +++ b/packages/babel-template/test/index.js @@ -5,7 +5,7 @@ import * as t from "@babel/types"; const comments = "// Sum two numbers\nconst add = (a, b) => a + b;"; -describe("babel-template", function() { +describe("@babel/template", function() { it("import statements are allowed by default", function() { expect(function() { template("import foo from 'foo'")({}); @@ -136,7 +136,7 @@ describe("babel-template", function() { }).to.throw( Error, `Error: No substitution given for "ANOTHER_ID". If this is not meant to be a - placeholder you may want to consider passing one of the following options to babel-template: + placeholder you may want to consider passing one of the following options to @babel/template: - { placeholderPattern: false, placeholderWhitelist: new Set(['ANOTHER_ID'])} - { placeholderPattern: /^ANOTHER_ID$/ }`, );