@embroider/addon-dev
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "@embroider/addon-dev", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Utilities for addon authors", | ||
@@ -26,3 +26,3 @@ "repository": { | ||
"dependencies": { | ||
"@embroider/shared-internals": "^1.0.0", | ||
"@embroider/shared-internals": "^1.1.0", | ||
"@rollup/pluginutils": "^4.1.1", | ||
@@ -29,0 +29,0 @@ "fs-extra": "^10.0.0", |
@@ -5,2 +5,4 @@ # @embroider/addon-dev | ||
For a guide on porting a V1 addon to V2, see https://github.com/embroider-build/embroider/blob/main/PORTING-ADDONS-TO-V2.md | ||
## Rollup Utilities | ||
@@ -18,2 +20,3 @@ | ||
2. Copy the `./sample-rollup.config.js` in this repo to your own `rollup.config.js`. | ||
3. Copy the `./sample-babel.config..json` in this repo to your own `babel.config.json`. | ||
@@ -20,0 +23,0 @@ ## addon-dev command |
@@ -27,4 +27,6 @@ import babel from '@rollup/plugin-babel'; | ||
// template colocation. | ||
// | ||
// By default, this will load the actual babel config from the file | ||
// babel.config.json. | ||
babel({ | ||
plugins: ['@embroider/addon-dev/template-colocation-plugin'], | ||
babelHelpers: 'bundled', | ||
@@ -31,0 +33,0 @@ }), |
@@ -15,3 +15,4 @@ "use strict"; | ||
for (let filename of Object.keys(bundle)) { | ||
if (opts.include.some((glob) => (0, minimatch_1.default)(filename, glob))) { | ||
if (opts.include.some((glob) => (0, minimatch_1.default)(filename, glob)) && | ||
!(0, minimatch_1.default)(filename, '**/*.d.ts')) { | ||
appJS[`./${filename}`] = `./dist/_app_/${filename}`; | ||
@@ -18,0 +19,0 @@ this.emitFile({ |
@@ -8,2 +8,5 @@ "use strict"; | ||
const path_1 = require("path"); | ||
function normalizeFileExt(fileName) { | ||
return fileName.replace(/\.ts|\.gts|\.gjs$/, '.js'); | ||
} | ||
function publicEntrypoints(args) { | ||
@@ -19,3 +22,3 @@ return { | ||
id: (0, path_1.join)(args.srcDir, name), | ||
fileName: name, | ||
fileName: normalizeFileExt(name), | ||
}); | ||
@@ -22,0 +25,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38804
403
38