Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert addon to v2 #908

Merged
merged 6 commits into from
Oct 31, 2023
Merged

Conversation

vstefanovic97
Copy link

No description provided.

@@ -1,9 +1,6 @@
import { module, test } from 'qunit';
import sinon from 'sinon';
import {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks safe to me as those are not public API?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SergeAstapov from what I can see they are used as test helpers for the test app, so probably is fine?

@@ -0,0 +1,40 @@
import ts from 'rollup-plugin-ts';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vstefanovic97 could you please latest addon-blueprint where we migrated away from rollup-plugin-ts?

@@ -66,13 +75,25 @@
"engines": {
"node": "14.* || 16.* || >= 18"
},
"typesVersions": {
">=5.0.0": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why it's not

Suggested change
">=5.0.0": {
"*": {

@@ -66,13 +75,25 @@
"engines": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now this field can be removed as there is nothing about Node.js for v2 addons

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not need to install node in ci.yml then?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we indeed Node.js to precompile addon and run tests in test-app, it's just now we could bump node version in ci.yml without need to do a major version bump if that's what you meant.

".": "./dist/index.js",
"./*": "./dist/*.js",
"./test-support": "./dist/test-support/index.js",
"./addon-main.cjs": "./addon-main.cjs"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this

Suggested change
"./addon-main.cjs": "./addon-main.cjs"
"./addon-main.js": "./addon-main.cjs"

- name: Precompile Typescript
run: yarn workspace ember-sinon-qunit run prepack
- name: Build v2 Addon
run: yarn workspace ember-sinon-qunit run build
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can rely on prepare script like it's done in blueprint https://github.com/embroider-build/addon-blueprint/blob/main/src/root-package-json.js#L52 ?

@elwayman02
Copy link
Owner

Do we need to update our dependabot config to ensure it can create PRs bumping versions in addon/ and test-app/ packages now that we're in the v2 workspace format?

@SergeAstapov
Copy link
Collaborator

SergeAstapov commented Oct 26, 2023

Do we need to update our dependabot config to ensure it can create PRs bumping versions in addon/ and test-app/ packages now that we're in the v2 workspace format?

No need to, dependabot handles monorepos with no extra setup

@SergeAstapov SergeAstapov linked an issue Oct 31, 2023 that may be closed by this pull request
@SergeAstapov SergeAstapov merged commit 2ba040d into elwayman02:master Oct 31, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript precompile is broken for floating deps builds on main
3 participants