Skip to content

Commit

Permalink
Remove the rest of the source conditions (#14889)
Browse files Browse the repository at this point in the history
## Description 

Describe the changes or additions included in this PR.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
  • Loading branch information
Jordan-Mysten authored Nov 17, 2023
1 parent 2fa6f3a commit 299759d
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 29 deletions.
2 changes: 1 addition & 1 deletion apps/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"eslint:fix": "pnpm run eslint:check --fix",
"lint": "pnpm run eslint:check && pnpm run prettier:check",
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix",
"test": "vitest run",
"test": "turbo --filter @mysten/core^... build && vitest run",
"test:watch": "vitest"
},
"dependencies": {
Expand Down
3 changes: 0 additions & 3 deletions apps/core/vite.config.ts → apps/core/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ process.env.VITE_VERCEL_ENV = process.env.VERCEL_ENV || 'development';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vanillaExtractPlugin()],
resolve: {
conditions: ['source'],
},
});
1 change: 1 addition & 0 deletions apps/explorer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { queryClient } from './utils/queryClient';
import './utils/sentry';

import './index.css';
import '@mysten/dapp-kit/dist/index.css';

// Load Amplitude as early as we can:
initAmplitude();
Expand Down
4 changes: 3 additions & 1 deletion apps/wallet/tests/demo-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [react(), tsconfigPaths({ root: '../../' })],
resolve: {
conditions: ['source'],
alias: {
'@mysten/bcs': new URL('../../../../sdk/bcs/src', import.meta.url).pathname,
},
},
});
3 changes: 0 additions & 3 deletions apps/wallet/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ export default defineConfig({
setupFiles: ['./testSetup.ts'],
restoreMocks: true,
},
resolve: {
conditions: ['source'],
},
});
1 change: 0 additions & 1 deletion sdk/bcs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 0 additions & 1 deletion sdk/dapp-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"source": "./src/index.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
Expand Down
1 change: 0 additions & 1 deletion sdk/deepbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 0 additions & 1 deletion sdk/kiosk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 0 additions & 1 deletion sdk/suins-toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
Expand Down
12 changes: 0 additions & 12 deletions sdk/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,62 +30,50 @@
"type": "commonjs",
"exports": {
"./bcs": {
"source": "./src/bcs/index.ts",
"import": "./dist/esm/bcs/index.js",
"require": "./dist/cjs/bcs/index.js"
},
"./client": {
"source": "./src/client/index.ts",
"import": "./dist/esm/client/index.js",
"require": "./dist/cjs/client/index.js"
},
"./cryptography": {
"source": "./src/cryptography/index.ts",
"import": "./dist/esm/cryptography/index.js",
"require": "./dist/cjs/cryptography/index.js"
},
"./faucet": {
"source": "./src/faucet/index.ts",
"import": "./dist/esm/faucet/index.js",
"require": "./dist/cjs/faucet/index.js"
},
"./keypairs/ed25519": {
"source": "./src/keypairs/ed25519/index.ts",
"import": "./dist/esm/keypairs/ed25519/index.js",
"require": "./dist/cjs/keypairs/ed25519/index.js"
},
"./keypairs/secp256k1": {
"source": "./src/keypairs/secp256k1/index.ts",
"import": "./dist/esm/keypairs/secp256k1/index.js",
"require": "./dist/cjs/keypairs/secp256k1/index.js"
},
"./keypairs/secp256r1": {
"source": "./src/keypairs/secp256r1/index.ts",
"import": "./dist/esm/keypairs/secp256r1/index.js",
"require": "./dist/cjs/keypairs/secp256r1/index.js"
},
"./multisig": {
"source": "./src/multisig/index.ts",
"import": "./dist/esm/multisig/index.js",
"require": "./dist/cjs/multisig/index.js"
},
"./transactions": {
"source": "./src/builder/export.ts",
"import": "./dist/esm/builder/export.js",
"require": "./dist/cjs/builder/export.js"
},
"./utils": {
"source": "./src/utils/index.ts",
"import": "./dist/esm/utils/index.js",
"require": "./dist/cjs/utils/index.js"
},
"./verify": {
"source": "./src/verify/index.ts",
"import": "./dist/esm/verify/index.js",
"require": "./dist/cjs/verify/index.js"
},
"./zklogin": {
"source": "./src/zklogin/index.ts",
"import": "./dist/esm/zklogin/index.js",
"require": "./dist/cjs/zklogin/index.js"
}
Expand Down
1 change: 0 additions & 1 deletion sdk/wallet-kit/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 0 additions & 1 deletion sdk/wallet-kit/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.tsx",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 0 additions & 1 deletion sdk/wallet-standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 0 additions & 1 deletion sdk/zklogin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"source": "./src/index.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
Expand Down

0 comments on commit 299759d

Please sign in to comment.