Skip to content

Commit

Permalink
Update to latest blueprint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Jul 20, 2023
1 parent 193852d commit 8ddf362
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# compiled output
dist/
declarations/

# dependencies
node_modules/
Expand Down
5 changes: 0 additions & 5 deletions ember-stargate/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
# will also appear in published NPM packages.
/README.md
/LICENSE.md
# Build output
/dist/
/declarations/
# npm/pnpm/yarn pack output
*.tgz
14 changes: 8 additions & 6 deletions ember-stargate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
},
"files": [
"addon-main.js",
"dist",
"declarations"
"declarations",
"dist"
],
"scripts": {
"build": "concurrently 'npm:build:*'",
"build:js": "rollup --config",
"build:types": "glint -d",
"build:types": "glint --declaration",
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
Expand Down Expand Up @@ -72,7 +72,6 @@
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.7",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-node-resolve": "15.1.0",
"concurrently": "8.0.1",
"ember-modifier": "4.1.0",
"ember-template-lint": "5.11.0",
Expand Down Expand Up @@ -103,9 +102,12 @@
}
},
"exports": {
".": "./dist/index.js",
".": {
"types": "./declarations/index.d.ts",
"default": "./dist/index.js"
},
"./*": {
"types": "./declarations/*.d.js",
"types": "./declarations/*.d.ts",
"default": "./dist/*.js"
},
"./addon-main.js": "./addon-main.js"
Expand Down
4 changes: 1 addition & 3 deletions ember-stargate/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const addon = new Addon({
});

// Add extensions here, such as ts, gjs, etc that you may import
const extensions = ['.js', '.ts', '.hbs'];
const extensions = ['.js', '.ts'];

export default {
// This provides defaults that work well alongside `publicEntrypoints` below.
Expand Down Expand Up @@ -43,8 +43,6 @@ export default {
extensions,
babelHelpers: 'bundled',
}),
// Allows rollup to resolve imports of files with the specified extensions
nodeResolve({ extensions }),

// Ensure that standalone .hbs files are properly integrated as Javascript.
addon.hbs(),
Expand Down

0 comments on commit 8ddf362

Please sign in to comment.