Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@embroider/addon-dev

Package Overview
Dependencies
Maintainers
5
Versions
378
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@embroider/addon-dev - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc