@salesforce/pwa-kit-dev 3.3.0-preview.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -231,7 +231,13 @@ const main = async () => {
231
231
  new program.Option('--inspect', 'enable debugging with --inspect on the node process')
232
232
  )
233
233
  .addOption(new program.Option('--noHMR', 'disable the client-side hot module replacement'))
234
- .action(async ({inspect, noHMR}) => {
234
+ .addOption(
235
+ new program.Option(
236
+ '--babelArgs <babel-args>',
237
+ 'args to pass through to babel-node'
238
+ ).default('--extensions ".js,.jsx,.ts,.tsx"')
239
+ )
240
+ .action(async ({inspect, noHMR, babelArgs}) => {
235
241
  // We use @babel/node instead of node because we want to support ES6 import syntax
236
242
  const babelNode = p.join(
237
243
  require.resolve('webpack'),
@@ -248,7 +254,7 @@ const main = async () => {
248
254
  process.exit(1)
249
255
  }
250
256
 
251
- execSync(`${babelNode} ${inspect ? '--inspect' : ''} ${entrypoint}`, {
257
+ execSync(`${babelNode} ${inspect ? '--inspect' : ''} ${babelArgs} ${entrypoint}`, {
252
258
  env: {
253
259
  ...process.env,
254
260
  ...(noHMR ? {HMR: 'false'} : {})
@@ -4,7 +4,7 @@
4
4
  "license": "See license in LICENSE",
5
5
  "engines": {
6
6
  "node": "^16.0.0 || ^18.0.0",
7
- "npm": "^7.0.0 || ^8.0.0 || ^9.0.0"
7
+ "npm": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"
8
8
  },
9
9
  "ccExtensibility": {
10
10
  "extends": "retail-react-app",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/pwa-kit-dev",
3
- "version": "3.3.0-preview.0",
3
+ "version": "3.3.0",
4
4
  "description": "Build tools for pwa-kit",
5
5
  "homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/pwa-kit-dev#readme",
6
6
  "bugs": {
@@ -58,7 +58,7 @@
58
58
  "@loadable/server": "^5.15.3",
59
59
  "@loadable/webpack-plugin": "^5.15.2",
60
60
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
61
- "@salesforce/pwa-kit-runtime": "3.3.0-preview.0",
61
+ "@salesforce/pwa-kit-runtime": "3.3.0",
62
62
  "@typescript-eslint/eslint-plugin": "^5.57.0",
63
63
  "@typescript-eslint/parser": "^5.57.0",
64
64
  "archiver": "1.3.0",
@@ -121,7 +121,7 @@
121
121
  "@types/node": "~16.0.3",
122
122
  "@types/node-fetch": "~2.6.3",
123
123
  "@types/validator": "~13.7.14",
124
- "internal-lib-build": "3.3.0-preview.0",
124
+ "internal-lib-build": "3.3.0",
125
125
  "nock": "^13.3.0",
126
126
  "nodemon": "^2.0.22",
127
127
  "superagent": "^6.1.0",
@@ -142,10 +142,10 @@
142
142
  },
143
143
  "engines": {
144
144
  "node": "^16.11.0 || ^18.0.0",
145
- "npm": "^8.0.0 || ^9.0.0"
145
+ "npm": "^8.0.0 || ^9.0.0 || ^10.0.0"
146
146
  },
147
147
  "publishConfig": {
148
148
  "directory": "dist"
149
149
  },
150
- "gitHead": "e96474c4e78bf0ab74c44fc6647f5614db71d769"
150
+ "gitHead": "93894bb7d823f3510e10affdb1eb8e6750b25822"
151
151
  }