型定義パッケージのテンプレート
for macOS
settings.json
}
//
"terminal.integrated.env.osx": {
"GITHUB_PACKAGE_TOKEN": "ghp_************************************"
}
//
}
for Windows
settings.json
}
//
"terminal.integrated.env.windows": {
"GITHUB_PACKAGE_TOKEN": "ghp_************************************"
}
//
}
if use npm
//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGE_TOKEN}
@suyama-daichi:registry=https://npm.pkg.github.com/
if use yarn
yarnPath: .yarn/releases/yarn-3.2.1.cjs
nodeLinker: node-modules
npmScopes:
'suyama-daichi':
npmAlwaysAuth: true
npmRegistryServer: 'https://npm.pkg.github.com/'
npmPublishRegistry: 'https://npm.pkg.github.com/'
npmAuthToken: ${GITHUB_PACKAGE_TOKEN}
if use npm
npm install -D @suyama-daichi/sample-types
if use yarn
yarn add -D @suyama-daichi/sample-types