Skip to content

Commit

Permalink
[fei5815.2.workaround] Try using symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
somewhatabstract committed Aug 30, 2024
1 parent d618e3a commit 65f6245
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 45 deletions.
5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

39 changes: 0 additions & 39 deletions build-settings/remove-files-not-to-be-packaged.ts

This file was deleted.

4 changes: 4 additions & 0 deletions npm-ignore-definition
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.tsbuildinfo
tsconfig-build.json
dist/**/__tests__
dist/**/*.test.d.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"rollup": "rollup -c build-settings/rollup.config.mjs",
"build": "yarn rollup",
"build:prodsizecheck": "yarn rollup --configPlatforms='browser' --configFormats='esm' --configEnvironment='production'",
"build:types": "yarn tsc --build --verbose tsconfig-build.json && ./build-settings/remove-files-not-to-be-packaged.ts && ./build-settings/check-type-definitions.ts",
"build:types": "yarn tsc --build --verbose tsconfig-build.json && ./build-settings/check-type-definitions.ts",
"build:docs": "typedoc",
"watch": "yarn rollup --watch",
"clean": "rm -rf packages/wonder-stuff-*/dist && rm -rf packages/wonder-stuff-*/node_modules && rm -f packages/*/*.tsbuildinfo",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-khan/.npmignore
1 change: 1 addition & 0 deletions packages/eslint-plugin-khan/.npmignore
1 change: 1 addition & 0 deletions packages/wonder-stuff-ci/.npmignore
1 change: 1 addition & 0 deletions packages/wonder-stuff-core/.npmignore
1 change: 1 addition & 0 deletions packages/wonder-stuff-i18n/.npmignore
1 change: 1 addition & 0 deletions packages/wonder-stuff-render-environment-jsdom/.npmignore
1 change: 1 addition & 0 deletions packages/wonder-stuff-render-server/.npmignore
1 change: 1 addition & 0 deletions packages/wonder-stuff-sentry/.npmignore
1 change: 1 addition & 0 deletions packages/wonder-stuff-server/.npmignore
1 change: 1 addition & 0 deletions packages/wonder-stuff-testing/.npmignore
16 changes: 16 additions & 0 deletions utils/create-npmignore-symlinks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Path to the npm-ignore-definition file
IGNORE_FILE="npm-ignore-definition"

# Loop through each directory under the packages directory
for dir in packages/*; do
if [ -d "$dir" ]; then
if [ ! -L "$dir/.npmignore" ]; then
ln -s "$(pwd)/$IGNORE_FILE" "$dir/.npmignore"
echo "Created symlink in $dir"
else
echo "Symlink already exists in $dir"
fi
fi
done

0 comments on commit 65f6245

Please sign in to comment.