Skip to content

Commit ab79dff

Browse files
use cpy-cli
1 parent 8eee50f commit ab79dff

File tree

3 files changed

+229
-4
lines changed

3 files changed

+229
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

src/feature-management/package-lock.json

Lines changed: 223 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/feature-management/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "npm run clean && rollup --config && npm run build-test",
1717
"build-test": "npm run build-test-esm && npm run build-test-cjs",
1818
"build-test-esm": "tsc -p ./tsconfig.test.esm.json",
19-
"build-test-cjs": "tsc -p ./tsconfig.test.cjs.json && echo {\"type\":\"commonjs\"} > out/cjs/package.json",
19+
"build-test-cjs": "tsc -p ./tsconfig.test.cjs.json && cpy cjs-package.json out/cjs --rename=package.json",
2020
"clean": "rimraf dist out types",
2121
"dev": "rollup --config --watch",
2222
"lint": "eslint src/ test/ --ignore-pattern test/browser/testcases.js",
@@ -37,16 +37,17 @@
3737
},
3838
"homepage": "https://github.com/microsoft/FeatureManagement-JavaScript#readme",
3939
"devDependencies": {
40+
"@playwright/test": "^1.55.0",
4041
"@rollup/plugin-typescript": "^11.1.6",
4142
"@types/chai": "^5.2.2",
4243
"@types/chai-as-promised": "8.0.2",
4344
"@types/mocha": "^10.0.10",
4445
"@types/node": "^22.18.0",
4546
"@typescript-eslint/eslint-plugin": "^8.41.0",
4647
"@typescript-eslint/parser": "^8.41.0",
47-
"@playwright/test": "^1.55.0",
4848
"chai": "^4.5.0",
4949
"chai-as-promised": "^7.1.2",
50+
"cpy-cli": "^6.0.0",
5051
"eslint": "^9.34.0",
5152
"mocha": "^11.7.1",
5253
"rimraf": "^6.0.1",
@@ -55,7 +56,5 @@
5556
"sinon": "^21.0.0",
5657
"tslib": "^2.8.1",
5758
"typescript": "^5.9.2"
58-
},
59-
"dependencies": {
6059
}
6160
}

0 commit comments

Comments
 (0)