diff --git a/package.json b/package.json index 821304b0e..e8a29a696 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "build:core": "microbundle --raw --cwd packages/core && pnpm postbuild:core", "build:preact": "microbundle --raw --cwd packages/preact && pnpm postbuild:preact", "build:react": "microbundle --raw --cwd packages/react && pnpm postbuild:react", - "postbuild:core": "cd packages/core/dist && mv -f index.d.ts signals-core.d.ts", - "postbuild:preact": "cd packages/preact/dist && mv -f preact/src/index.d.ts signals.d.ts && rm -dr preact", - "postbuild:react": "cd packages/react/dist && mv -f react/src/index.d.ts signals.d.ts && rm -dr react", + "postbuild:core": "cd packages/core/dist && move-cli index.d.ts signals-core.d.ts", + "postbuild:preact": "cd packages/preact/dist && move-cli preact/src/index.d.ts signals.d.ts && rimraf preact", + "postbuild:react": "cd packages/react/dist && move-cli react/src/index.d.ts signals.d.ts && rimraf react", "postbuild": "node ./scripts/node-13-exports.js", "lint": "eslint 'packages/**/*.{ts,tsx,js,jsx}'", "test": "cross-env COVERAGE=true karma start karma.conf.js --single-run", @@ -30,10 +30,10 @@ "license": "MIT", "devDependencies": { "@babel/core": "^7.19.1", + "@babel/plugin-transform-typescript": "^7.19.1", "@babel/preset-env": "^7.19.1", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", - "@babel/plugin-transform-typescript": "^7.19.1", "@changesets/changelog-github": "^0.4.6", "@changesets/cli": "^2.24.2", "@types/chai": "^4.3.3", @@ -64,6 +64,7 @@ "lint-staged": "^13.0.3", "microbundle": "^0.15.1", "mocha": "^10.0.0", + "move-cli": "^2.0.0", "prettier": "^2.7.1", "rimraf": "^3.0.2", "sinon": "^14.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bb6a27947..39f46626d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,6 +47,7 @@ importers: lint-staged: ^13.0.3 microbundle: ^0.15.1 mocha: ^10.0.0 + move-cli: ^2.0.0 prettier: ^2.7.1 rimraf: ^3.0.2 sinon: ^14.0.0 @@ -88,6 +89,7 @@ importers: lint-staged: 13.0.3 microbundle: 0.15.1_yvstdq4ikeml4yz3a6bi3bgrvu mocha: 10.0.0 + move-cli: 2.0.0 prettier: 2.7.1 rimraf: 3.0.2 sinon: 14.0.0 @@ -4220,6 +4222,16 @@ packages: is-glob: 4.0.3 dev: true + /glob/6.0.4: + resolution: {integrity: sha512-MKZeRNyYZAVVVG1oZeLaWie1uweH40m9AZwIwxyPbTSX4hHrVYSzLg0Ro5Z5R7XKkIX+Cc6oD1rqeDJnwsB8/A==} + dependencies: + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + /glob/7.2.0: resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} dependencies: @@ -5339,6 +5351,15 @@ packages: yargs-unparser: 2.0.0 dev: true + /move-cli/2.0.0: + resolution: {integrity: sha512-/YUsTv5Gwemt9Iv2YkyVJvqphssA97I5fc2fr1Ak+Buh4pSDIPCTunx+wespnsEK3m31xVYwj8btzmdfUM90Dw==} + engines: {node: '>=8'} + hasBin: true + dependencies: + meow: 6.1.1 + mv: 2.1.1 + dev: true + /mri/1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} @@ -5356,6 +5377,15 @@ packages: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true + /mv/2.1.1: + resolution: {integrity: sha512-at/ZndSy3xEGJ8i0ygALh8ru9qy7gWW1cmkaqBN29JmMlIvM//MEO9y1sk/avxuwnPcfhkejkLsuPxH81BrkSg==} + engines: {node: '>=0.8.0'} + dependencies: + mkdirp: 0.5.6 + ncp: 2.0.0 + rimraf: 2.4.5 + dev: true + /nanoid/3.3.3: resolution: {integrity: sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -5372,6 +5402,11 @@ packages: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true + /ncp/2.0.0: + resolution: {integrity: sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==} + hasBin: true + dev: true + /negotiator/0.6.3: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} engines: {node: '>= 0.6'} @@ -6381,6 +6416,13 @@ packages: resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==} dev: true + /rimraf/2.4.5: + resolution: {integrity: sha512-J5xnxTyqaiw06JjMftq7L9ouA448dw/E7dKghkP9WpKNuwmARNNg+Gk8/u5ryb9N/Yo2+z3MCwuqFK/+qPOPfQ==} + hasBin: true + dependencies: + glob: 6.0.4 + dev: true + /rimraf/3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} hasBin: true