Skip to content

Commit

Permalink
v2.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Aug 22, 2024
1 parent 6b8eb37 commit d035896
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions programs/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"node": ">=18"
},
"name": "extension",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Create cross-browser extensions with no build configuration.",
"main": "./dist/cli.js",
"types": "./dist/cli.d.ts",
Expand Down Expand Up @@ -51,8 +51,8 @@
],
"dependencies": {
"@colors/colors": "^1.6.0",
"extension-create": "*",
"extension-develop": "*",
"extension-create": "2.0.0-alpha.2",
"extension-develop": "2.0.0-alpha.2",
"commander": "^11.1.0",
"semver": "^7.5.4",
"update-check": "^1.5.4"
Expand Down
2 changes: 1 addition & 1 deletion programs/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"node": ">=18"
},
"name": "extension-create",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "The Extension.js create step",
"main": "./dist/module.js",
"types": "./dist/module.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion programs/develop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"node": ">=18"
},
"name": "extension-develop",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "The develop step of Extension.js",
"main": "./dist/module.js",
"types": "./dist/module.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion programs/develop/webpack/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export async function devServer(
projectPath: string,
{...devOptions}: DevOptions
) {
const baseConfig = webpackConfig(projectPath, devOptions)
const baseConfig = webpackConfig(projectPath, {
...devOptions,
mode: 'development'
})
const userExtensionConfig = loadExtensionConfig(projectPath)
const userConfig = userExtensionConfig(baseConfig)
const compilerConfig = merge(userConfig)
Expand Down
2 changes: 1 addition & 1 deletion programs/develop/webpack/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function webpackConfig(
)
const manifest = require(manifestPath)
return {
mode: devOptions.mode,
mode: devOptions.mode || 'development',
entry: {},
target: 'web',
context: projectPath,
Expand Down

0 comments on commit d035896

Please sign in to comment.