Skip to content

Commit 5063729

Browse files
authored
Merge pull request #2030 from embroider-build/merge-stable
Merge stable
2 parents 4aacaee + 9e64c75 commit 5063729

20 files changed

+2691
-263
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
use_lockfile: false
5252
- name: Work around windows short path alias # https://github.com/actions/runner-images/issues/712
5353
if: runner.os == 'Windows'
54-
run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
54+
run: new-item D:\temp -ItemType Directory; echo "TEMP=D:\temp" >> $env:GITHUB_ENV
5555
- name: suite
5656
run: ${{ matrix.command }}
5757
working-directory: ${{ matrix.dir }}

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Embroider Changelog
22

3+
## Release (2024-07-03)
4+
5+
@embroider/compat 3.5.6 (patch)
6+
7+
#### :bug: Bug Fix
8+
* `@embroider/compat`
9+
* [#2012](https://github.com/embroider-build/embroider/pull/2012) Empty packages as valid v2 addons ([@BlueCutOfficial](https://github.com/BlueCutOfficial))
10+
11+
#### Committers: 1
12+
- Marine Dunstetter ([@BlueCutOfficial](https://github.com/BlueCutOfficial))
13+
14+
## Release (2024-06-27)
15+
16+
@embroider/addon-dev 5.0.0 (major)
17+
18+
#### :boom: Breaking Change
19+
* `@embroider/addon-dev`
20+
* [#2007](https://github.com/embroider-build/embroider/pull/2007) Add just the necessary files to rollup watch mode ([@vstefanovic97](https://github.com/vstefanovic97))
21+
22+
#### Committers: 1
23+
- Vuk ([@vstefanovic97](https://github.com/vstefanovic97))
24+
325
## Release (2024-06-24)
426

527
@embroider/compat 3.5.5 (patch)

packages/addon-dev/package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@embroider/addon-dev",
3-
"version": "4.3.1",
3+
"version": "5.0.0",
44
"description": "Utilities for addon authors",
55
"repository": {
66
"type": "git",
@@ -25,6 +25,14 @@
2525
"scripts": {
2626
"test": "jest"
2727
},
28+
"peerDependencies": {
29+
"rollup": "^4.6.0"
30+
},
31+
"peerDependenciesMeta": {
32+
"rollup": {
33+
"optional": true
34+
}
35+
},
2836
"dependencies": {
2937
"@embroider/core": "workspace:^",
3038
"@rollup/pluginutils": "^4.1.1",

packages/addon-dev/src/rollup-keep-assets.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ export default function keepAssets({
1414
return {
1515
name: 'copy-assets',
1616

17-
// Prior to https://github.com/rollup/rollup/pull/5270, we cannot call this
18-
// from within `generateBundle`
19-
buildStart() {
20-
this.addWatchFile(from);
21-
},
22-
2317
// imports of assets should be left alone in the source code. This can cover
2418
// the case of .css as defined in the embroider v2 addon spec.
2519
async resolveId(source, importer, options) {
@@ -44,6 +38,8 @@ export default function keepAssets({
4438
globs: include,
4539
directories: false,
4640
})) {
41+
this.addWatchFile(join(from, name));
42+
4743
this.emitFile({
4844
type: 'asset',
4945
fileName: name,

packages/addon-dev/src/rollup-public-entrypoints.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ export default function publicEntrypoints(args: {
1616
return {
1717
name: 'addon-modules',
1818
async buildStart() {
19-
this.addWatchFile(args.srcDir);
20-
2119
let matches = walkSync(args.srcDir, {
2220
globs: [...args.include, '**/*.hbs', '**/*.ts', '**/*.gts', '**/*.gjs'],
2321
ignore: args.exclude,
2422
});
2523

2624
for (let name of matches) {
25+
this.addWatchFile(path.join(args.srcDir, name));
26+
2727
// the matched file, but with the extension swapped with .js
2828
let normalizedName = normalizeFileExt(name);
2929

packages/compat/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@embroider/compat",
3-
"version": "3.5.5",
3+
"version": "3.5.6",
44
"private": false,
55
"description": "Backward compatibility layer for the Embroider build system.",
66
"repository": {

packages/compat/src/empty-package-tree.ts

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ export default class extends Plugin {
1818
writeJSONSync(join(this.outputPath, 'package.json'), {
1919
name: this.originalPackage.name,
2020
version: this.originalPackage.version,
21+
keywords: ['ember-addon'],
22+
'ember-addon': {
23+
version: 2,
24+
type: 'addon',
25+
'auto-upgraded': true,
26+
},
2127
'//': 'This empty package was created by embroider. See https://github.com/embroider-build/embroider/blob/main/docs/empty-package-output.md',
2228
});
2329
}

packages/util/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@ember/jquery": "^2.0.0",
5050
"@ember/optional-features": "^2.0.0",
5151
"@ember/string": "^3.1.1",
52-
"@ember/test-helpers": "^2.9.1",
52+
"@ember/test-helpers": "^3.0.3",
5353
"@embroider/compat": "workspace:*",
5454
"@embroider/core": "workspace:*",
5555
"@embroider/test-setup": "workspace:*",

packages/util/testem.js

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1-
const { testemConfig } = require('@embroider/test-support/testem-config');
2-
module.exports = testemConfig();
1+
module.exports = {
2+
test_page: 'tests/index.html?hidepassed',
3+
disable_watching: true,
4+
launch_in_ci: ['Chrome'],
5+
launch_in_dev: ['Chrome'],
6+
browser_start_timeout: 90,
7+
browser_args: {
8+
Chrome: {
9+
ci: [
10+
// --no-sandbox is needed when running Chrome inside a container
11+
process.env.CI ? '--no-sandbox' : null,
12+
'--headless',
13+
'--disable-dev-shm-usage',
14+
'--disable-software-rasterizer',
15+
'--mute-audio',
16+
'--remote-debugging-port=0',
17+
'--window-size=1440,900',
18+
`--crash-dumps-dir=${process.env.TMPDIR}`,
19+
].filter(Boolean),
20+
},
21+
},
22+
};

0 commit comments

Comments
 (0)