diff --git a/projects/js-packages/scan/changelog/remove-build b/projects/js-packages/scan/changelog/remove-build new file mode 100644 index 0000000000000..9718e80ca65d2 --- /dev/null +++ b/projects/js-packages/scan/changelog/remove-build @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fixed configuration issues in the package.json file. diff --git a/projects/js-packages/scan/package.json b/projects/js-packages/scan/package.json index 1d90bc53bfa80..304333846aa97 100644 --- a/projects/js-packages/scan/package.json +++ b/projects/js-packages/scan/package.json @@ -14,6 +14,7 @@ }, "license": "GPL-2.0-or-later", "author": "Automattic", + "type": "module", "scripts": { "build": "pnpm run clean && pnpm run compile-ts", "clean": "rm -rf build/", @@ -21,7 +22,6 @@ "test": "jest", "test-coverage": "pnpm run test --coverage" }, - "type": "module", "devDependencies": { "@automattic/jetpack-webpack-config": "workspace:*", "@babel/core": "7.26.0", @@ -41,15 +41,6 @@ "storybook": "8.3.5", "typescript": "5.0.4" }, - "exports": { - ".": { - "jetpack:src": "./src/index.ts", - "types": "./build/index.d.ts", - "default": "./build/index.js" - } - }, - "main": "./build/index.js", - "types": "./build/index.d.ts", "dependencies": { "@automattic/jetpack-api": "workspace:*", "@automattic/jetpack-base-styles": "workspace:*", @@ -65,5 +56,11 @@ "@wordpress/i18n": "5.11.0", "react": "^18.2.0", "react-dom": "^18.2.0" + }, + "exports": { + ".": { + "types": "./src/index.d.ts", + "default": "./src/index.ts" + } } }